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;
54 this->service->client->address_str().c_str(), desc->
uuid.
to_string().c_str(), desc->
handle);
83 auto status = esp_ble_gattc_write_char(client->get_gattc_if(), client->get_conn_id(), this->handle, new_val_size,
84 new_val, write_type, ESP_GATT_AUTH_REQ_NONE);
86 ESP_LOGW(TAG,
"[%d] [%s] Error sending write value to BLE gattc server, status=%d",