Update log lines

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

Wyświetl plik

@ -20,13 +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"); LOG_INFO("BLE 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("Client disconnected, started advertising"); LOG_INFO("BLE client disconnected, started advertising");
} }
}; };
@ -99,7 +99,7 @@ bool BLESerial::begin(const char* localName)
// Start the service // Start the service
pService->start(); pService->start();
LOG_INFO("starting service"); LOG_INFO("BLE starting service");
// Start advertising // Start advertising
pServer->getAdvertising()->addServiceUUID(pService->getUUID()); pServer->getAdvertising()->addServiceUUID(pService->getUUID());
@ -107,7 +107,7 @@ bool BLESerial::begin(const char* localName)
pServer->getAdvertising()->setMinPreferred(0x06); pServer->getAdvertising()->setMinPreferred(0x06);
pServer->getAdvertising()->setMaxPreferred(0x12); pServer->getAdvertising()->setMaxPreferred(0x12);
pServer->getAdvertising()->start(); pServer->getAdvertising()->start();
LOG_INFO("Waiting a client connection to notify..."); LOG_INFO("BLE is waiting a client connection to notify...");
return true; return true;
} }