![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| 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.
| [in] | gatt_queue | Pointer to the GATT Queue instance. |
| [in] | req | Pointer to the request. |
| [in] | conn_handle | Connection handle associated with the request. |
| NRF_SUCCESS | Request was added successfully. |
| NRF_ERROR_NULL | Any parameter was NULL. |
| NRF_ERROR_INVALID_PARAM | If conn_handle is not registered or type of request req is not valid. |
| NRF_ERROR_NO_MEM | There was no room in the queue or in the data pool. |