Additional ble logging

pull/42/head
sh123 2022-06-19 19:03:18 +03:00
rodzic 1e3795d377
commit fc552bea1e
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -20,12 +20,13 @@ class BLESerialServerCallbacks: public BLEServerCallbacks {
void onConnect(BLEServer* pServer) {
// do anything needed on connection
LOG_INFO("Client connected");
delay(1000); // wait for connection to complete or messages can be lost
};
void onDisconnect(BLEServer* pServer) {
pServer->startAdvertising(); // restart advertising
LOG_INFO("Started advertising");
LOG_INFO("Client disconnected, started advertising");
}
};