![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| 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.
| [in,out] | hrs_client | Heart Rate Client structure. |
| [in] | hrs_client_config | Heart rate service client configuration. |
| NRF_SUCCESS | On success. |
| NRF_ERROR_NULL | If 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. |