S145 SoftDevice for nRF54LM20 API documentation 10.0.0
Loading...
Searching...
No Matches

◆ sd_ble_gattc_evt_char_val_by_uuid_read_rsp_iter()

uint32_t sd_ble_gattc_evt_char_val_by_uuid_read_rsp_iter ( ble_gattc_evt_t * p_gattc_evt,
ble_gattc_handle_value_t * p_iter )

#include <ble_gattc.h>

Iterate through Handle-Value(s) list in BLE_GATTC_EVT_CHAR_VAL_BY_UUID_READ_RSP event.

Parameters
[in]p_gattc_evtPointer to event buffer containing BLE_GATTC_EVT_CHAR_VAL_BY_UUID_READ_RSP event.
Note
If the buffer contains different event, behavior is undefined.
Parameters
[in,out]p_iterIterator, points to ble_gattc_handle_value_t structure that will be filled in with the next Handle-Value pair in each iteration. If the function returns other than NRF_SUCCESS, it will not be changed.
  • To start iteration, initialize the structure to zero.
  • To continue, pass the value from previous iteration.
memset(&iter, 0, sizeof(ble_gattc_handle_value_t));
while (sd_ble_gattc_evt_char_val_by_uuid_read_rsp_iter(&ble_evt.evt.gattc_evt, &iter) == NRF_SUCCESS)
{
app_handle = iter.handle;
memcpy(app_value, iter.p_value, ble_evt.evt.gattc_evt.params.char_val_by_uuid_read_rsp.value_len);
}
uint32_t sd_ble_gattc_evt_char_val_by_uuid_read_rsp_iter(ble_gattc_evt_t *p_gattc_evt, ble_gattc_handle_value_t *p_iter)
Iterate through Handle-Value(s) list in BLE_GATTC_EVT_CHAR_VAL_BY_UUID_READ_RSP event.
#define NRF_SUCCESS
Successful command.
Definition nrf_error.h:62
uint8_t * p_value
Definition ble_gattc.h:262
uint16_t handle
Definition ble_gattc.h:261
GATT read by UUID handle value pair.
Definition ble_gattc.h:260
Return values
NRF_SUCCESSSuccessfully retrieved the next Handle-Value pair.
NRF_ERROR_NOT_FOUNDNo more Handle-Value pairs available in the list.