We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 82ffddc + 2e46581 commit 18c896dCopy full SHA for 18c896d
1 file changed
src/utility/ATT.cpp
@@ -481,6 +481,12 @@ bool ATTClass::disconnect()
481
}
482
483
numDisconnects++;
484
+
485
+ BLEDevice bleDevice(_peers[i].addressType, _peers[i].address);
486
487
+ if (_eventHandlers[BLEDisconnected]) {
488
+ _eventHandlers[BLEDisconnected](bleDevice);
489
+ }
490
491
_peers[i].connectionHandle = 0xffff;
492
_peers[i].role = 0x00;
0 commit comments