Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
Heart Rate Service (HRS)

Heart Rate Service (HRS) More...

Functions

int bt_hrs_notify (uint16_t heartrate)
 Notify heart rate measurement. More...
 

Detailed Description

Heart Rate Service (HRS)

[Experimental] Users should note that the APIs can change as a part of ongoing development.

Function Documentation

◆ bt_hrs_notify()

int bt_hrs_notify ( uint16_t  heartrate)

#include <include/bluetooth/services/hrs.h>

Notify heart rate measurement.

This will send a GATT notification to all current subscribers.

Parameters
heartrateThe heartrate measurement in beats per minute.
Returns
Zero in case of success and error code in case of error.