mirror of
https://github.com/esphome/esphome.git
synced 2025-10-23 12:13:49 +01:00
wip
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user