42 esp_gattc_char_elem_t result;
47 esp_ble_gattc_get_all_char(this->
client->
get_gattc_if(), this->client->get_conn_id(), this->start_handle,
48 this->end_handle, &result, &count, offset);
49 if (
status == ESP_GATT_INVALID_OFFSET ||
status == ESP_GATT_NOT_FOUND) {
52 if (
status != ESP_GATT_OK) {
54 this->client->address_str(),
status);
62 characteristic->
uuid = espbt::ESPBTUUID::from_uuid(result.uuid);
63 characteristic->
properties = result.properties;
64 characteristic->
handle = result.char_handle;
67#if ESPHOME_LOG_LEVEL >= ESPHOME_LOG_LEVEL_VERBOSE
68 char uuid_buf[espbt::UUID_STR_LEN];
71 this->client->address_str(), uuid_buf, characteristic->
handle, characteristic->
properties);