mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
стабильное логгирование
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include "NTP.h"
|
||||
|
||||
//раскомментировать если нужна цельная выгрузка графиков
|
||||
//#define SOLID_UPLOADING
|
||||
#define SOLID_UPLOADING
|
||||
|
||||
class Loging : public IoTItem {
|
||||
private:
|
||||
@@ -177,16 +177,6 @@ class Loging : public IoTItem {
|
||||
publishChart(id, oneSingleJson);
|
||||
}
|
||||
|
||||
void cleanLog() {
|
||||
String directory = "logs/" + id;
|
||||
auto dir = FileFS.openDir(directory);
|
||||
while (dir.next()) {
|
||||
String fname = dir.fileName();
|
||||
removeFile(directory + "/" + fname);
|
||||
SerialPrint("I", "Loging " + id, fname + " deleted");
|
||||
}
|
||||
}
|
||||
|
||||
int calculateMaxCount() {
|
||||
return 86400 / interval;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user