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

◆ ble_gq_conn_handle_register()

uint32_t ble_gq_conn_handle_register ( const struct ble_gq * gatt_queue,
uint16_t conn_handle )

#include <ble_gq.h>

Register connection handle in the GATT queue instance.

This function is used for registering connection handle in the BGQ instance. From this point, the BGQ instance can handle GATT requests associated with the handle until connection is no longer valid (disconnect event occurs).

Parameters
[in]gatt_queuePointer to the GATT Queue instance.
[in]conn_handleConnection handle.
Return values
NRF_SUCCESSConnection handle was registered successfully.
NRF_ERROR_NULLIf gatt_queue was NULL.
NRF_ERROR_NO_MEMNo space for another connection handle.