zephyr/samples/bluetooth/peripheral_sc_only
Johan Hedberg a9f23cccf5 samples: bluetooth: peripheral_sc_only: Fix restarting advertising
We need to call `bt_le_adv_start()` again to make sure the device remains
connectable after a disconnection event. The appropriate place to do it is
in the `recycled()` callback.

Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
2025-01-27 13:26:53 +01:00
..
boards Bluetooth: Host: Remove HCI ECC emulation 2025-01-23 10:14:46 +01:00
src samples: bluetooth: peripheral_sc_only: Fix restarting advertising 2025-01-27 13:26:53 +01:00
CMakeLists.txt
prj.conf Bluetooth: Host: Remove HCI ECC emulation 2025-01-23 10:14:46 +01:00
README.rst
sample.yaml

.. zephyr:code-sample:: ble_peripheral_sc_only
   :name: Peripheral SC-only
   :relevant-api: bt_conn bluetooth

   Enable "Secure Connections Only" mode for a Bluetooth LE peripheral.

Overview
********

Similar to the :zephyr:code-sample:`ble_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 (FIPS).


Requirements
************

* BlueZ running on the host, or
* A board with Bluetooth LE support

Building and Running
********************

This sample can be found under :zephyr_file:`samples/bluetooth/peripheral_sc_only`
in the Zephyr tree.

See :zephyr:code-sample-category:`bluetooth` samples for details.