The pointer to the descriptor in the characteristic
count
The number of descriptors to retrieve. It will be updated with the actual number of descriptors found.
offset
The position offset to retrieve
Return value
- ESP_OK: Success - ESP_GATT_INVALID_HANDLE: Invalid GATT `char_handle` - ESP_GATT_INVALID_PDU: NULL pointer to `result` or NULL pointer to `count` or the count value is 0 - ESP_FAIL: Failure due to other reasons
Notes
1. This API does not trigger any event. 2. `char_handle` must be greater than 0.
Examples
esp_ble_gattc_get_all_descr() is referenced by 3 libraries and example projects: