запись лога в файл

This commit is contained in:
Dmitry Borisenko
2022-08-24 00:21:20 +02:00
parent 875b7616ab
commit 5deb974b4e
4 changed files with 22 additions and 15 deletions

View File

@@ -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);
}
}
};