![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| uint32_t ble_hrs_client_handles_assign | ( | struct ble_hrs_client * | hrs_client, |
| uint16_t | conn_handle, | ||
| const struct ble_hrs_handles * | peer_hrs_handles ) |
#include <ble_hrs_client.h>
Assign handles to an instance of hrs_c.
Call this function when a link has been established with a peer to associate the link to this instance of the module. This association makes it possible to handle several links and associate each link to a particular instance of this module. The connection handle and attribute handles are provided from the discovery event BLE_HRS_CLIENT_EVT_DISCOVERY_COMPLETE.
| [in,out] | hrs_client | Heart Rate Client structure instance for associating the link. |
| [in] | conn_handle | Connection handle to associate with the given Heart Rate Client instance. |
| [in] | peer_hrs_handles | Attribute handles for the HRS server you want this HRS_C client to interact with. |
| NRF_SUCCESS | On success. |
| NRF_ERROR_NULL | If hrs_client is NULL. |