diff --git a/src/utility/ATT.cpp b/src/utility/ATT.cpp index 2696960e..ef92f52f 100644 --- a/src/utility/ATT.cpp +++ b/src/utility/ATT.cpp @@ -481,6 +481,12 @@ bool ATTClass::disconnect() } numDisconnects++; + + BLEDevice bleDevice(_peers[i].addressType, _peers[i].address); + + if (_eventHandlers[BLEDisconnected]) { + _eventHandlers[BLEDisconnected](bleDevice); + } _peers[i].connectionHandle = 0xffff; _peers[i].role = 0x00;