Bluetooth: Observer
Overview
A simple application demonstrating Bluetooth Low Energy Observer role functionality. The application will periodically scan for devices nearby. If any found, prints the address of the device, the RSSI value, the Advertising type, and the Advertising data length to the console.
If the used Bluetooth Low Energy Controller supports Extended Scanning, you may enable CONFIG_BT_EXT_ADV in the project configuration file. Refer to the project configuration file for further details.
Requirements
A board with Bluetooth Low Energy support
Building and Running
examples/bluetooth/observer
compile, burn, and more, see get-started chapter 。
Running result
I/observer [0.002] Starting Observer Demo
I/bt_hci_core [0.028] Identity: 28:6D:CE:01:02:03 (public)
I/bt_hci_core [0.032] HCI: version 4.2 (0x08) revision 0x0709, manufacturer 0x070c
I/bt_hci_core [0.040] LMP: version 4.2 (0x08) subver 0x0709
I/observer [0.048] Started scanning...
I/observer [0.056] Device found: C0:00:00:10:77:16 (public) (RSSI -99), type 0, AD data len 30
I/observer [0.064] Device found: 4A:C1:07:FB:4E:03 (random) (RSSI -100), type 0, AD data len 18
I/observer [0.074] Device found: 11:06:C7:AA:E9:F1 (random) (RSSI -99), type 3, AD data len 31
I/observer [0.084] Device found: 28:6D:CE:11:22:33 (public) (RSSI -60), type 0, AD data len 15