Heart-rate Monitor (Peripheral)
Overview
Similar to the 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 samples/bluetooth/peripheral_hr in the Zephyr tree.
Building a minimal variant
# From the root of the zephyr repository
west build -b qemu_cortex_m3 samples/bluetooth/peripheral_hr -- -DCONF_FILE=prj_minimal.conf
Building a minimal variant for bbc_microbit
# From the root of the zephyr repository
west build -b bbc_microbit samples/bluetooth/peripheral_hr -- -DCONF_FILE=prj_minimal.conf -DEXTRA_CONF_FILE=overlay-bt_ll_sw_split-minimal.conf