Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleLow Energy Commands
languagebash
$ sudo hciconfig hci0 lestates
Supported link layer states:
        YES Non-connectable Advertising State
        YES Scannable Advertising State
        YES Connectable Advertising State
        YES Directed Advertising State
        ....
$ sudo hcitool lescan
LE Scan ...
 
# To enable advertising
$ sudo hciconfig hci0 leadv
# Scan on another bluetooth device
$ sudo hcitool lescan
# To disable advertising
$ sudo hciconfig hci0 noleadv

 

Gattool

Other