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

◆ ble_qwr_conn_handle_assign()

uint32_t ble_qwr_conn_handle_assign ( struct ble_qwr * qwr,
uint16_t conn_handle )

#include <ble_qwr.h>

Function for assigning a connection handle to an instance of the Queued Writes module.

Call this function when a link with a peer has been established to associate this link to the instance of the module. This makes it possible to handle several links and associate each link to a particular instance of this module.

Parameters
[in]qwrQueued Writes structure.
[in]conn_handleConnection handle to be associated with the given Queued Writes instance.
Return values
NRF_SUCCESSIf the assignment was successful.
NRF_ERROR_NULLIf qwr is NULL.
NRF_ERROR_INVALID_STATEIf the given qwr instance has not been initialized.