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

◆ ble_hrs_init()

uint32_t ble_hrs_init ( struct ble_hrs * hrs,
const struct ble_hrs_config * hrs_config )

#include <ble_hrs.h>

Initialize the heart rate service.

Parameters
hrsHeart rate service.
hrs_configHeart rate service configuration.
Return values
NRF_SUCCESSOn success.
NRF_ERROR_NULLIf hrs or hrs_config are NULL.
Returns
In addition, this function may return any error returned by the following SoftDevice functions:
  • sd_ble_gatts_service_add()
  • sd_ble_gatts_characteristic_add()