Mistake on this page?
Report an issue in GitHub or email us

HeartRateService

People practicing physical activities use heart rate monitors to track their pulse in real time and improve their physical performances.

The Bluetooth Heart Rate Service defines how data from a heart rate sensor should be exposed through a BLE link. The standard nature of the service allows seamless operations between collectors - usually smartphone applications - and heart rate monitors conforming to the service.

The HeartRateService class implements the Bluetooth Heart Rate service as defined by the Bluetooth body. Makers of BLE enabled fitness devices can use it to expose interoperably heart rate sensor data.

Note: The Bluetooth Heart Rate Service is part of the Bluetooth Heart Rate Profile, which defines behaviors that a Bluetooth heart rate sensor expects. You must ensure that your application conforms to the heart rate profile to guarantee interoperability of your heart rate sensors.

HeartRateService class reference

Data Structures
struct  HeartRateValueBytes
Public Types
Public Member Functions
 HeartRateService (BLE &_ble, uint16_t hrmCounter, BodySensorLocation location)
 Construct and initialize a heart rate service. More...
void updateHeartRate (uint16_t hrmCounter)
 Update the heart rate that the service exposes. More...
Protected Member Functions
void setupService ()
 Construct and add to the GattServer the heart rate service. More...
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.