diff --git a/BleConnectionStatus.cpp b/BleConnectionStatus.cpp index f01183b..943ba22 100644 --- a/BleConnectionStatus.cpp +++ b/BleConnectionStatus.cpp @@ -15,4 +15,7 @@ void BleConnectionStatus::onDisconnect(BLEServer* pServer) this->connected = false; BLE2902* desc = (BLE2902*)this->inputMouse->getDescriptorByUUID(BLEUUID((uint16_t)0x2902)); desc->setNotifications(false); + + BLEAdvertising *pAdvertising = pServer->getAdvertising(); + pAdvertising->start(); }