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