nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ ble_hrs_client_hrm_notif_enable()

uint32_t ble_hrs_client_hrm_notif_enable ( struct ble_hrs_client * hrs_client)

#include <ble_hrs_client.h>

Request the peer to start sending notification of Heart Rate Measurement.

This function enables notification of the Heart Rate Measurement at the peer by writing to the CCCD of the Heart Rate Measurement characteristic.

Parameters
hrs_clientHeart Rate Client structure.
Return values
NRF_SUCCESSOn success.
NRF_ERROR_NULLIf ble_hrs_client is NULL.
NRF_ERROR_INVALID_STATEIf the connection handle or CCCD handle has not been assigned (for example, ble_hrs_client_handles_assign has not been called, or the peer has disconnected).
Returns
In addition, this function may return any error returned by the following functions: