kopia lustrzana https://github.com/sh123/esp32_loraprs
Additional ble logging
rodzic
1e3795d377
commit
fc552bea1e
|
@ -20,12 +20,13 @@ class BLESerialServerCallbacks: public BLEServerCallbacks {
|
||||||
|
|
||||||
void onConnect(BLEServer* pServer) {
|
void onConnect(BLEServer* pServer) {
|
||||||
// do anything needed on connection
|
// do anything needed on connection
|
||||||
|
LOG_INFO("Client connected");
|
||||||
delay(1000); // wait for connection to complete or messages can be lost
|
delay(1000); // wait for connection to complete or messages can be lost
|
||||||
};
|
};
|
||||||
|
|
||||||
void onDisconnect(BLEServer* pServer) {
|
void onDisconnect(BLEServer* pServer) {
|
||||||
pServer->startAdvertising(); // restart advertising
|
pServer->startAdvertising(); // restart advertising
|
||||||
LOG_INFO("Started advertising");
|
LOG_INFO("Client disconnected, started advertising");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue