• Home
  • Annotate
  • current directory
Name Date Size #Lines LOC

..22-Aug-2025-

boards/22-Aug-2025-

src/22-Aug-2025-

CMakeLists.txt A D22-Aug-2025319 149

Kconfig.sysbuild A D22-Aug-2025510 1612

README.rst A D22-Aug-20251.2 KiB4431

overlay-bt_ll_sw_split-minimal.conf A D22-Aug-2025384 168

overlay-bt_ll_sw_split.conf A D22-Aug-2025407 123

overlay-extended.conf A D22-Aug-2025256 72

overlay-phy_coded.conf A D22-Aug-2025393 134

overlay-static_callbacks.conf A D22-Aug-202576 31

prj.conf A D22-Aug-2025222 1110

prj_minimal.conf A D22-Aug-20253.2 KiB11759

sample.yaml A D22-Aug-20253.3 KiB113112

sysbuild.cmake A D22-Aug-2025707 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
24This sample can be found under :zephyr_file:`samples/bluetooth/peripheral_hr` in the
25Zephyr tree.
26
27Building a minimal variant
28--------------------------
29
30.. zephyr-app-commands::
31   :zephyr-app: samples/bluetooth/peripheral_hr
32   :board: qemu_cortex_m3
33   :goals: build
34   :gen-args: -DCONF_FILE=prj_minimal.conf
35
36Building a minimal variant for bbc_microbit
37-------------------------------------------
38
39.. zephyr-app-commands::
40   :zephyr-app: samples/bluetooth/peripheral_hr
41   :board: bbc_microbit
42   :goals: build
43   :gen-args: -DCONF_FILE=prj_minimal.conf -DEXTRA_CONF_FILE=overlay-bt_ll_sw_split-minimal.conf
44