Bluetooth: iBeacon
Overview
This simple application demonstrates the BLE Broadcaster role
functionality by advertising an Apple iBeacon. The calibrated RSSI @ 1
meter distance can be set using an IBEACON_RSSI build variable
(e.g. IBEACON_RSSI=0xb8 for -72 dBm RSSI @ 1 meter), or by manually
editing the default value in the main.c
file.
Because of the hard-coded values of iBeacon UUID, major, and minor, the application is not suitable for production use, but is quite convenient for quick demonstrations of iBeacon functionality.
Requirements
A board with BLE support
Building and Running
examples/bluetooth/iBeacon
compile, burn, and more, see get-started chapter 。
Running result
I/ibeacon [0.002] Starting iBeacon 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/ibeacon [0.046] Bluetooth initialized
I/ibeacon [0.054] iBeacon started