Bluetooth: Peripheral HR
概述
和 外围设备 示例类似, 本示例提供了 HR (Heart Rate) GATT Service. 一旦建立连接,程序将向中央设备发送模拟的心率值。
环境要求
支持 BLE 功能的开发板
编译和烧录
示例位置:
examples/bluetooth/peripheral_hr
编译、烧录等操作,具体参考 快速入门 章节 。
运行结果
I/bt_smp [0.048] LE SC enabled
I/bt_hci_core [0.176] Identity: 28:6D:CE:01:02:03 (public)
I/bt_hci_core [0.182] HCI: version 4.2 (0x08) revision 0x0709, manufacturer 0x070c
I/bt_hci_core [0.190] LMP: version 4.2 (0x08) subver 0x0709
I/peripheral_hr [0.196] Bluetooth initialized
I/peripheral_hr [0.202] Advertising successfully started