Heart Rate Service Client module.
More...
Heart Rate Service Client module.
This module contains the APIs and types exposed by the Heart Rate Service Client module. These APIs and types can be used by the application to perform discovery of Heart Rate Service at the peer and interact with it.
- Warning
- Currently this module only has support for Heart Rate Measurement characteristic. This means that it will be able to enable notification of the characteristic at the peer and be able to receive Heart Rate Measurement notifications from the peer. It does not support the Body Sensor Location and the Heart Rate Control Point characteristics. When a Heart Rate Measurement is received, this module will decode only the Heart Rate Measurement Value (both 8 bit and 16 bit) field from it and provide it to the application.
- Note
- The application must register this module as BLE event observer using the NRF_SDH_BLE_OBSERVER macro. Example:
#define BLE_HRS_C_ARRAY_DEF |
( |
|
_name, |
|
|
|
_cnt |
|
) |
| |
Macro for defining multiple ble_hrs_c instances.
- Parameters
-
_name | Name of the array of instances. |
_cnt | Number of instances to define. |
#define BLE_HRS_C_DEF |
( |
|
_name | ) |
|
Macro for defining a ble_hrs_c instance.
- Parameters
-
_name | Name of the instance. |
#define BLE_HRS_C_RR_INTERVALS_MAX_CNT 20 |
Maximum number of RR intervals to be decoded for each HRM notifications (any extra RR intervals will be ignored).
This define should be defined in the sdk_config.h file to override the default.