1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-13 15:23:49 +01:00

Speed up bluetooth proxy connections when using esp-idf (#4171)

This commit is contained in:
J. Nick Koston
2022-12-12 14:57:12 -10:00
committed by GitHub
parent db3096c6e1
commit c47dc09d34
3 changed files with 11 additions and 1 deletions

View File

@@ -95,7 +95,9 @@ void BLEClientBase::release_services() {
for (auto &svc : this->services_)
delete svc; // NOLINT(cppcoreguidelines-owning-memory)
this->services_.clear();
#ifndef CONFIG_BT_GATTC_CACHE_NVS_FLASH
esp_ble_gattc_cache_clean(this->remote_bda_);
#endif
}
bool BLEClientBase::gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t esp_gattc_if,