Heart-rate Monitor (Central)
Overview
Similar to the Central sample, except that this application specifically looks for heart-rate monitors and reports the heart-rate readings once connected.
Requirements
BlueZ running on the host, or
A board with Bluetooth LE support
Building and Running
Build and flash the sample as follows, replacing <board> with your target board:
west build -b <board> samples/bluetooth/central_hr
west flash
After flashing, the sample scans for peripherals advertising the Heart Rate Service (HRS). When one is found, it connects and subscribes to Heart Rate Measurement notifications. Use the Peripheral sample on a second board, or any Bluetooth LE heart rate monitor, as the peripheral.