这个页面的 最新开发版本 可能比这个发布的 0.4.3 版本新。

Bluetooth: Beacon

功能概述

本例演示了如何使能 BLE 广播功能, 广播内容为 Eddystone URL

环境要求

  • 支持 BLE 功能的开发板

编译和烧录

示例位置:

examples/bluetooth/beacon

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

运行结果

I/beacon          [0.222] Starting Beacon Demo

I/bt_hci_core     [0.246] Identity: 28:6D:CE:01:02:03 (public)
I/bt_hci_core     [0.252] HCI: version 4.2 (0x08) revision 0x0709, manufacturer 0x070c
I/bt_hci_core     [0.260] LMP: version 4.2 (0x08) subver 0x0709
I/beacon          [0.266] Bluetooth initialized

I/beacon          [0.272] Beacon started, advertising as 28:6D:CE:01:02:03 (public)