mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
автоматическое удаление данных несуществующих графиков
This commit is contained in:
@@ -319,8 +319,13 @@ void sendAllFilesToMQTT() {
|
||||
while (dir.next()) {
|
||||
String fname = dir.fileName();
|
||||
String id = selectToMarker(fname, "-");
|
||||
SerialPrint("I", "Loging", fname);
|
||||
sendLogData("/logs/" + fname, id);
|
||||
if (isItemExist(id)) {
|
||||
SerialPrint("I", "Loging", fname);
|
||||
sendLogData("/logs/" + fname, id);
|
||||
} else {
|
||||
SerialPrint("i", "Loging", "file '" + fname + "' not used, deleted");
|
||||
removeFile(directory + "/" + fname);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user