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

Bluetooth: Peripheral ESP

概述

外围设备 示例类似, 本示例提供了 ESP (Environmental Sensing Profile) GATT Service.

环境要求

  • 支持 BLE 功能的开发板

编译和烧录

示例位置:

examples/bluetooth/peripheral_esp

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

运行结果

I/bt_smp          [0.244] LE SC enabled
I/bt_hci_core     [0.374] Identity: 28:6D:CE:01:02:03 (public)
I/bt_hci_core     [0.380] HCI: version 4.2 (0x08) revision 0x0709, manufacturer 0x070c
I/bt_hci_core     [0.388] LMP: version 4.2 (0x08) subver 0x0709
I/peripheral_esp  [0.392] Bluetooth initialized

I/peripheral_esp  [0.400] Advertising successfully started