1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-23 12:13:49 +01:00
This commit is contained in:
J. Nick Koston
2025-09-29 18:15:25 -05:00
parent 9ff838bf35
commit 43d8e213f6
6 changed files with 23 additions and 16 deletions

View File

@@ -154,7 +154,7 @@ void BLEServer::gatts_event_handler(esp_gatts_cb_event_t event, esp_gatt_if_t ga
ESP_LOGD(TAG, "BLE Client connected");
this->add_client_(param->connect.conn_id);
if (this->on_connect_callback_) {
this->on_connect_callback_(param->connect.conn_id);
(*this->on_connect_callback_)(param->connect.conn_id);
}
break;
}
@@ -163,7 +163,7 @@ void BLEServer::gatts_event_handler(esp_gatts_cb_event_t event, esp_gatt_if_t ga
this->remove_client_(param->disconnect.conn_id);
this->parent_->advertising_start();
if (this->on_disconnect_callback_) {
this->on_disconnect_callback_(param->disconnect.conn_id);
(*this->on_disconnect_callback_)(param->disconnect.conn_id);
}
break;
}