A UUID of the intended service. If NULL is passed, this API will return all services.
Return value
- ESP_OK: Success - ESP_FAIL: Failure
Notes
1. This function triggers `ESP_GATTC_SEARCH_RES_EVT` each time a service is retrieved. 2. This function triggers `ESP_GATTC_SEARCH_CMPL_EVT` when the search is completed. 3. The 128-bit base UUID will be converted to a 16-bit UUID automatically in the search results. Other types of UUID remain unchanged.
Examples
esp_ble_gattc_search_service() is referenced by 8 libraries and example projects: