Zephyr API Documentation  3.5.0
A Scalable Open Source RTOS
3.5.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Heart Rate Service (HRS)

Heart Rate Service (HRS) More...

Functions

int bt_hrs_notify (uint16_t heartrate)
 Notify heart rate measurement.
 

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 <zephyr/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.