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

◆ ble_hrs_client_handles_assign()

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.

Parameters
[in,out]hrs_clientHeart Rate Client structure instance for associating the link.
[in]conn_handleConnection handle to associate with the given Heart Rate Client instance.
[in]peer_hrs_handlesAttribute handles for the HRS server you want this HRS_C client to interact with.
Return values
NRF_SUCCESSOn success.
NRF_ERROR_NULLIf hrs_client is NULL.
Returns
In addition, this function may return any error returned by the following functions: