MCPcopy Create free account
hub / github.com/T-vK/ESP32-BLE-Mouse / onDisconnect

Method onDisconnect

BleConnectionStatus.cpp:13–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13void BleConnectionStatus::onDisconnect(BLEServer* pServer)
14{
15 this->connected = false;
16 BLE2902* desc = (BLE2902*)this->inputMouse->getDescriptorByUUID(BLEUUID((uint16_t)0x2902));
17 desc->setNotifications(false);
18}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected