29 esp_gattc_descr_elem_t result;
35 this->handle, &result, &count, offset);
36 if (
status == ESP_GATT_INVALID_OFFSET ||
status == ESP_GATT_NOT_FOUND) {
39 if (
status != ESP_GATT_OK) {
40 ESP_LOGW(TAG,
"[%d] [%s] esp_ble_gattc_get_all_descr error, status=%d",
49 desc->
uuid = espbt::ESPBTUUID::from_uuid(result.uuid);
50 desc->
handle = result.handle;
53#if ESPHOME_LOG_LEVEL >= ESPHOME_LOG_LEVEL_VERBOSE
54 char uuid_buf[espbt::UUID_STR_LEN];
57 this->service->client->address_str(), uuid_buf, desc->
handle);
87 auto status = esp_ble_gattc_write_char(client->get_gattc_if(), client->get_conn_id(), this->handle, new_val_size,
88 new_val, write_type, ESP_GATT_AUTH_REQ_NONE);
90 ESP_LOGW(TAG,
"[%d] [%s] Error sending write value to BLE gattc server, status=%d",