Update Sketch_02.2_BLE_USART.ino

This commit is contained in:
Zhentao-Lin 2024-08-30 17:25:15 +08:00
parent a3f2424d07
commit 71255bf3a9

View File

@ -25,6 +25,7 @@ class MyServerCallbacks: public BLEServerCallbacks {
};
void onDisconnect(BLEServer* pServer) {
deviceConnected = false;
//pServer->getAdvertising()->start(); //Reopen the pServer and wait for the connection.
}
};