mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 22:52:19 +03:00
добавил централизованную функцию serial print и утилиты времени
This commit is contained in:
9
src/utils/SerialPrint.cpp
Normal file
9
src/utils/SerialPrint.cpp
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
#include "Utils\SerialPrint.h"
|
||||
|
||||
void SerialPrint(String errorLevel, String module, String msg) {
|
||||
Serial.println(prettyMillis(millis()) + " [" + errorLevel + "] [" + module + "] " + msg);
|
||||
String tosend = "[" + errorLevel + "] [" + module + "] " + msg;
|
||||
|
||||
// ws.textAll(tosend);
|
||||
}
|
||||
Reference in New Issue
Block a user