zephyr/samples/bluetooth/peripheral_hr
Sergey Korotkov 2ee0e38929 Bluetooth: Host: more secure defaults for key size and legacy pairing
Default the Minimum encryption key size to 16.
Key with reduced size is easier to brut force.
Disable LE legacy pairing by default since it's not secure.

These defaults should suite majority of newly developed applications.
It's better to use sensible more secure defaults,
so applications that really need less secure option consciously change it,
not the other way around.
This may help to prevent downgrade attacks.

Signed-off-by: Sergey Korotkov <sergey.korotkov@nordicsemi.no>
2024-12-04 12:10:54 +01:00
..
boards Bluetooth: Host: more secure defaults for key size and legacy pairing 2024-12-04 12:10:54 +01:00
src Bluetooth: Deprecate adv auto-resume 2024-10-08 16:57:01 +02:00
CMakeLists.txt
Kconfig.sysbuild samples: Bluetooth: Support sysbuild for central_hr and peripheral_hr 2024-04-23 21:29:10 +00:00
overlay-extended.conf samples: Bluetooth: peripheral_hr extended advertising support 2024-04-23 21:29:10 +00:00
overlay-phy_coded.conf samples: Bluetooth: peripheral_hr extended advertising support 2024-04-23 21:29:10 +00:00
prj_minimal.conf samples: bt: some RAM footprint reductions 2024-11-27 16:40:47 -05:00
prj.conf
README.rst doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
sample.yaml boards: nordic: Remove nRF54L15 PDK 2024-10-21 01:46:39 +01:00
sysbuild.cmake samples: Bluetooth: Support sysbuild for central_hr and peripheral_hr 2024-04-23 21:29:10 +00:00

.. zephyr:code-sample:: ble_peripheral_hr
   :name: Heart-rate Monitor (Peripheral)
   :relevant-api: bt_hrs bt_bas bluetooth

   Expose a Heart Rate (HR) GATT Service generating dummy heart-rate values.

Overview
********

Similar to the :zephyr:code-sample:`ble_peripheral` sample, except that this
application specifically exposes the HR (Heart Rate) GATT Service. Once a device
connects it will generate dummy heart-rate values.


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_hr` in the
Zephyr tree.

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