nRF5 SDK v17.1.0
Heart Rate Service
This information applies to the following SoftDevices: S132, S140

This module implements the Heart Rate Service with the Heart Rate Measurement, Body Sensor Location and Heart Rate Control Point characteristics. During initialization it adds the Heart Rate Service and Heart Rate Measurement characteristic to the BLE stack database. Optionally it also adds the Body Sensor Location and Heart Rate Control Point characteristics.

If enabled, notification of the Heart Rate Measurement characteristic is performed when the application calls ble_hrs_heart_rate_measurement_send().

The Heart Rate Service also provides a set of functions for manipulating the various fields in the Heart Rate Measurement characteristic, as well as setting the Body Sensor Location characteristic value.

If an event handler is supplied by the application, the Heart Rate Service will generate Heart Rate Service events to the application.

Note
The application must register each instance of this module as a BLE stack event observer using the NRF_SDH_BLE_OBSERVER macro from the SoftDevice Handler library.

Documentation feedback | Developer Zone | Subscribe | Updated