mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 22:52:19 +03:00
запись лога в файл
This commit is contained in:
@@ -21,6 +21,8 @@ class Loging : public IoTItem {
|
||||
SerialPrint("E", F("Logging"), F("no value set"));
|
||||
} else {
|
||||
regEvent(value, "Logging");
|
||||
String logData = String(_time_local.second) + " " + value + "\r\n";
|
||||
writeFile("log.txt", logData);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user