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

Bluetooth: Peripheral SC-only

概述

外围设备 示例不同的是,本示例使能了 BLE 的 Secure Connections Only 模式,也就是说仅仅支持 security level 4 (FIPS) 的 bond 过程。

环境要求

  • 支持 BLE 功能的开发板

编译和烧录

示例位置:

examples/bluetooth/peripheral_sc_only

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

运行结果

I/bt_smp          [0.078] LE SC enabled
I/bt_hci_core     [0.208] No ID address. App must call settings_load()
I/sc_only         [0.214] Bluetooth initialized

I/bt_hci_core     [0.220] Identity: 28:6D:CE:01:02:03 (public)
I/bt_hci_core     [0.226] HCI: version 4.2 (0x08) revision 0x0709, manufacturer 0x070c
I/bt_hci_core     [0.234] LMP: version 4.2 (0x08) subver 0x0709
I/sc_only         [0.300] Advertising successfully started