Heart Rate Service

group HRS

Heart Rate Service.

The Heart Rate Service exposes heart rate and other data related to a heart rate sensor intended for fitness applications.

Application shall register heart rate service when initialization through hrs_add_service function.

The Heart Rate Measurement characteristic is used to send a heart rate measurement. Included in the characteristic are a Flags field (for showing the presence of optional fields and features supported), a heart rate measurement value field and, depending upon the contents of the Flags field, an Energy Expended field and an RR-Interval field. The RR-Interval represents the time between two consecutive R waves in an Electrocardiogram (ECG) waveform. Application can send heart rate measurement value through hrs_heart_rate_measurement_value_notify function.

The Body Sensor Location characteristic of the device is used to describe the intended location of the heart rate measurement for the device. The value of the Body Sensor Location characteristic is static while in a connection.

The Heart Rate Control Point characteristic is used to enable a Client to write control points to a Server to control behavior. Support for this characteristic is mandatory if the Server supports the Energy Expended feature.

Application can set heart rate measurement parameter and location of the heart rate measurement for the device through hrs_set_parameter function.