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

◆ ble_hrs_sensor_contact_supported_set()

uint32_t ble_hrs_sensor_contact_supported_set ( struct ble_hrs * hrs,
bool is_sensor_contact_supported )

#include <ble_hrs.h>

Function for setting the state of the sensor contact supported bit.

Note
Changing the sensor contact supported bit is not allowed when in a connection.
Parameters
hrsHeart rate service.
is_sensor_contact_supportedNew state of the sensor contact support bit.
Return values
NRF_SUCCESSOn success.
NRF_ERROR_NULLIf hrs is NULL.
NRF_ERROR_INVALID_STATEIf in a connection.