• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

boards/29-Dec-2025-5341

src/29-Dec-2025-311232

CMakeLists.txtD29-Dec-2025306 149

Kconfig.sysbuildD29-Dec-2025495 1612

README.rstD29-Dec-20251.1 KiB4129

overlay-bt_ll_sw_split-minimal.confD29-Dec-2025534 2010

overlay-bt_ll_sw_split.confD29-Dec-2025396 123

overlay-extended.confD29-Dec-2025250 72

overlay-phy_coded.confD29-Dec-2025305 103

overlay-static_callbacks.confD29-Dec-202574 31

prj.confD29-Dec-2025212 1110

prj_minimal.confD29-Dec-20253.1 KiB11759

sample.yamlD29-Dec-20253.2 KiB112111

sysbuild.cmakeD29-Dec-2025699 2518

README.rst

1.. zephyr:code-sample:: ble_peripheral_hr
2   :name: Heart-rate Monitor (Peripheral)
3   :relevant-api: bt_hrs bt_bas bluetooth
4
5   Expose a Heart Rate (HR) GATT Service generating dummy heart-rate values.
6
7Overview
8********
9
10Similar to the :zephyr:code-sample:`ble_peripheral` sample, except that this
11application specifically exposes the HR (Heart Rate) GATT Service. Once a device
12connects it will generate dummy heart-rate values.
13
14
15Requirements
16************
17
18* BlueZ running on the host, or
19* A board with Bluetooth LE support
20
21Building and Running
22********************
23
24Building a minimal variant
25--------------------------
26
27.. zephyr-app-commands::
28   :zephyr-app: samples/bluetooth/peripheral_hr
29   :board: qemu_cortex_m3
30   :goals: build
31   :gen-args: -DCONF_FILE=prj_minimal.conf
32
33Building a minimal variant for bbc_microbit
34-------------------------------------------
35
36.. zephyr-app-commands::
37   :zephyr-app: samples/bluetooth/peripheral_hr
38   :board: bbc_microbit
39   :goals: build
40   :gen-args: -DCONF_FILE=prj_minimal.conf -DEXTRA_CONF_FILE=overlay-bt_ll_sw_split-minimal.conf
41