Bluetooth: Scan & Advertise
Overview
A simple application demonstrating combined BLE Broadcaster & Observer role functionality. The application will periodically send out advertising packets with a manufacturer data element. The content of the data is a single byte indicating how many advertising packets the device has received (the number will roll back to 0 after 255).
Requirements
A board with BLE support
Building and Running
examples/bluetooth/scan_adv
compile, burn, and more, see get-started chapter 。
Running result
I/scan_adv [0.002] Starting Scanner/Advertiser Demo
I/bt_hci_core [0.028] Identity: 28:6D:CE:01:02:03 (public)
I/bt_hci_core [0.034] HCI: version 4.2 (0x08) revision 0x0709, manufacturer 0x070c
I/bt_hci_core [0.040] LMP: version 4.2 (0x08) subver 0x0709
I/scan_adv [0.046] Bluetooth initialized