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

◆ ble_hrs_body_sensor_location_set()

uint32_t ble_hrs_body_sensor_location_set ( struct ble_hrs * hrs,
uint8_t body_sensor_location )

#include <ble_hrs.h>

Function for setting the Body Sensor Location.

Sets a new value of the Body Sensor Location characteristic. The new value will be sent to the client the next time the client reads the Body Sensor Location characteristic.

Parameters
hrsHeart rate service.
body_sensor_locationNew body sensor location.
Return values
NRF_SUCCESSOn success.
NRF_ERROR_NULLIf hrs is NULL.
Returns
In addition, this function may return any error returned by the following SoftDevice functions:
  • sd_ble_gatts_value_set()