This commit is contained in:
Dmitry Borisenko
2021-12-05 00:50:52 +01:00
parent 2573e73b3a
commit f8307dcb5e
6 changed files with 27 additions and 40 deletions

View File

@@ -1,9 +1,12 @@
#include "Utils\SerialPrint.h"
#include "Global.h"
#include "HttpServer.h"
void SerialPrint(String errorLevel, String module, String msg) {
//if (module == "MySensor") {
Serial.println(prettyMillis(millis()) + " [" + errorLevel + "] [" + module + "] " + msg);
//}
Serial.println(prettyMillis(millis()) + " [" + errorLevel + "] [" + module + "] " + msg);
String tosend = "[" + errorLevel + "] [" + module + "] " + msg;
ws.textAll(tosend);
}