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

◆ ble_gq_item_add()

uint32_t ble_gq_item_add ( const struct ble_gq * gatt_queue,
struct ble_gq_req * req,
uint16_t conn_handle )

#include <ble_gq.h>

Add a GATT request to the GATT queue instance.

This function adds a request to the BGQ instance and allocates necessary memory for data that can be held within the request descriptor. If the SoftDevice is free, this request will be processed immediately. Otherwise, the request remains in the queue and is processed later.

Parameters
[in]gatt_queuePointer to the GATT Queue instance.
[in]reqPointer to the request.
[in]conn_handleConnection handle associated with the request.
Return values
NRF_SUCCESSRequest was added successfully.
NRF_ERROR_NULLAny parameter was NULL.
NRF_ERROR_INVALID_PARAMIf conn_handle is not registered or type of request req is not valid.
NRF_ERROR_NO_MEMThere was no room in the queue or in the data pool.