Files
IoTManager/src/Utils/SerialPrint.cpp

12 lines
331 B
C++
Raw Normal View History

2021-10-05 19:21:52 +08:00
#include "Utils\SerialPrint.h"
#include "Global.h"
2021-12-05 00:50:52 +01:00
#include "HttpServer.h"
2021-10-05 19:21:52 +08:00
void SerialPrint(String errorLevel, String module, String msg) {
2021-12-05 00:50:52 +01:00
Serial.println(prettyMillis(millis()) + " [" + errorLevel + "] [" + module + "] " + msg);
String tosend = "[" + errorLevel + "] [" + module + "] " + msg;
ws.textAll(tosend);
2021-10-05 19:21:52 +08:00
}