docs(ble/bluedroid): Optimize BLE example documentation for getting characteristic

This commit is contained in:
zhanghaipeng
2024-08-24 12:12:28 +08:00
parent e03fd702ae
commit 86713a6946
2 changed files with 50 additions and 26 deletions
@@ -562,7 +562,7 @@ static esp_gatt_srvc_id_t remote_service_id = {
};
```
Once defined, we can get the characteristics from that service using the `esp_ble_gattc_get_characteristic()` function, which is called in the `ESP_GATTC_SEARCH_CMPL_EVT` event after the search for services is completed and the client has found the service that it was looking for.
Once defined, we can get the characteristics from that service using the `esp_ble_gattc_get_char_by_uuid()` function, which is called in the `ESP_GATTC_SEARCH_CMPL_EVT` event after the search for services is completed and the client has found the service that it was looking for.
```c
case ESP_GATTC_SEARCH_CMPL_EVT: