mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
продолжение переписи api
This commit is contained in:
@@ -6,15 +6,14 @@ void SerialPrint(String errorLevel, String module, String msg) {
|
||||
|
||||
tosend = prettyMillis(millis());
|
||||
|
||||
// if (module == "Loging") {
|
||||
tosend = tosend + " [" + errorLevel + "] [" + module + "] " + msg;
|
||||
Serial.println(tosend);
|
||||
|
||||
if (isNetworkActive()) {
|
||||
if (jsonReadInt(settingsFlashJson, F("log")) != 0) {
|
||||
String pl = "/log|" + tosend;
|
||||
standWebSocket.broadcastTXT(pl);
|
||||
// String pl = "/log|" + tosend;
|
||||
// standWebSocket.broadcastTXT(pl);
|
||||
sendStringToWs("corelg", tosend, -1);
|
||||
}
|
||||
}
|
||||
//}
|
||||
}
|
||||
Reference in New Issue
Block a user