Peripheral SC-only
Overview
Similar to the Peripheral sample, except that this application enables the Secure Connections Only mode, i.e. will only accept connections that are secured using security level 4 (Authenticated LE Secure Connections).
Requirements
BlueZ running on the host, or
A board with Bluetooth LE support
Building and Running
Build and flash the sample as follows, replacing <board> with your target board:
west build -b <board> samples/bluetooth/peripheral_sc_only
west flash
After flashing, use a central device to connect and pair with the peripheral. Upon connection, the peripheral requests security level 4 (Authenticated LE Secure Connections). If the central does not support LE Secure Connections, pairing will fail and the connection will be terminated. BlueZ on Linux or a modern smartphone can be used as the central.