nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ bt_hrs_client_measurement_subscribe()

int bt_hrs_client_measurement_subscribe ( struct bt_hrs_client hrs_c,
bt_hrs_client_notify_cb  notify_cb 
)

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

Subscribe to Heart Rate Measurement notification.

This function writes CCC descriptor of the Heart Rate Measurement characteristic to enable notification.

Parameters
[in]hrs_cHeart Rate Service Client instance.
[in]notify_cbNotification callback.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.