Files
IoTManager/src/Utils/SerialPrint.cpp

12 lines
324 B
C++
Raw Normal View History

2021-10-05 19:21:52 +08:00
#include "Utils\SerialPrint.h"
#include "Global.h"
2021-12-13 00:58:42 +01:00
#include "WebServer.h"
2021-10-05 19:21:52 +08:00
void SerialPrint(String errorLevel, String module, String msg) {
2021-12-06 01:27:33 +01:00
String tosend = prettyMillis(millis()) + " [" + errorLevel + "] [" + module + "] " + msg;
2021-12-05 00:50:52 +01:00
2021-12-06 01:27:33 +01:00
Serial.println(tosend);
2021-12-07 22:20:00 +01:00
// mqttRootDevice +
ws.textAll("/core/" + tosend);
2021-10-05 19:21:52 +08:00
}