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

◆ ble_hrs_client_init()

uint32_t ble_hrs_client_init ( struct ble_hrs_client * hrs_client,
const struct ble_hrs_client_config * hrs_client_config )

#include <ble_hrs_client.h>

Initialize the Heart Rate Client module.

This function registers with the Database Discovery module for the Heart Rate Service. The module looks for the presence of a Heart Rate Service instance at the peer when a discovery is started.

Parameters
[in,out]hrs_clientHeart Rate Client structure.
[in]hrs_client_configHeart rate service client configuration.
Return values
NRF_SUCCESSOn success.
NRF_ERROR_NULLIf any of hrs_client, hrs_client_config, or the configuration's ble_hrs_client_config::evt_handler or ble_hrs_client_config::gatt_queue fields are NULL.
Returns
In addition, this function may return any error returned by the following functions: