mirror of
https://github.com/Freenove/Freenove_ESP32_WROVER_Board.git
synced 2025-07-29 08:07:50 +00:00
Update Sketch_02.2_BLE_USART.ino
This commit is contained in:
parent
a3f2424d07
commit
71255bf3a9
@ -25,6 +25,7 @@ class MyServerCallbacks: public BLEServerCallbacks {
|
|||||||
};
|
};
|
||||||
void onDisconnect(BLEServer* pServer) {
|
void onDisconnect(BLEServer* pServer) {
|
||||||
deviceConnected = false;
|
deviceConnected = false;
|
||||||
|
//pServer->getAdvertising()->start(); //Reopen the pServer and wait for the connection.
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user