![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| uint32_t ble_hrs_client_hrm_notif_disable | ( | struct ble_hrs_client * | hrs_client | ) |
#include <ble_hrs_client.h>
Request the peer to stop sending notification of Heart Rate Measurement.
This function disables notification of the Heart Rate Measurement at the peer by writing to the CCCD of the Heart Rate Measurement characteristic.
| hrs_client | Heart Rate Client structure. |
| NRF_SUCCESS | On success. |
| NRF_ERROR_NULL | If ble_hrs_client is NULL. |
| NRF_ERROR_INVALID_STATE | If 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). |