Skip to content

Commit 211ba18

Browse files
authored
Adds onDisconnect() BLE param (#7851)
1 parent 1e3717b commit 211ba18

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: libraries/BLE/src/BLEServer.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ void BLEServer::handleGATTServerEvent(esp_gatts_cb_event_t event, esp_gatt_if_t
207207
case ESP_GATTS_DISCONNECT_EVT: {
208208
if (m_pServerCallbacks != nullptr) { // If we have callbacks, call now.
209209
m_pServerCallbacks->onDisconnect(this);
210+
m_pServerCallbacks->onDisconnect(this, param);
210211
}
211212
if(m_connId == ESP_GATT_IF_NONE) {
212213
return;

0 commit comments

Comments
 (0)