Bluetooth: Peripheral
概述
本示例演示了使能 BLE 外围设备角色,应用程序包含了几个常用的 GATT 和自定义服务列表。
环境要求
支持 BLE 功能的开发板
编译和烧录
示例位置:
examples/bluetooth/peripheral
编译、烧录等操作,具体参考 快速入门 章节 。
运行结果
I/bt_smp [0.078] LE SC enabled
I/bt_hci_core [0.212] No ID address. App must call settings_load()
I/peripheral [0.218] Bluetooth initialized
I/bt_hci_core [0.284] Identity: 28:6D:CE:01:02:03 (public)
I/bt_hci_core [0.290] HCI: version 4.2 (0x08) revision 0x0709, manufacturer 0x070c
I/bt_hci_core [0.298] LMP: version 4.2 (0x08) subver 0x0709
I/peripheral [0.538] Advertising successfully started
I/peripheral [0.544] Indicate VND attr 080470E0 (UUID 12345678-1234-5678-1234-56789abcdef1)