esp_ble_gattc_get_service() function
Get the service with the given service UUID in the local GATTC cache
Arguments
gattc_if
GATT Client access interface
svc_uuid
The pointer to the service UUID. If NULL is passed, the API will retrieve all services.
result
The pointer to the service which has been found in the local GATTC cache
count
The number of services to retrieve. It will be updated with the actual number of services found.
offset
The position offset to retrieve
Return value
- ESP_OK: Success - ESP_FAIL: Failure
Notes
1. This API does not trigger any event. 2. `esp_ble_gattc_cache_refresh` can be used to discover services again.