Skip to content

Commit

Permalink
Adds onDisconnect() BLE param (#7851)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuGlider authored Feb 15, 2023
1 parent 1e3717b commit 211ba18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/BLE/src/BLEServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ void BLEServer::handleGATTServerEvent(esp_gatts_cb_event_t event, esp_gatt_if_t
case ESP_GATTS_DISCONNECT_EVT: {
if (m_pServerCallbacks != nullptr) { // If we have callbacks, call now.
m_pServerCallbacks->onDisconnect(this);
m_pServerCallbacks->onDisconnect(this, param);
}
if(m_connId == ESP_GATT_IF_NONE) {
return;
Expand Down

0 comments on commit 211ba18

Please sign in to comment.