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