这是最新(主)开发分支的文档。如果您正在查找以前版本的文档,使用左侧的下拉菜单选择所需的版本。

Bluetooth: iBeacon

概述

本示例演示了 Apple iBeacon 功能。程序运行后开始广播 Apple 的 iBeacon 数据包。广播包的信号强度可以通过 IBEACON_RSSI 调整(e.g. IBEACON_RSSI=0xb8 for -72 dBm RSSI @ 1 meter)。

环境要求

  • 支持 BLE 功能的开发板

编译和烧录

示例位置:

examples/bluetooth/ibeacon

编译、烧录等操作,具体参考 快速入门 章节 。

运行结果

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