увеличиваем процент свободной памяти при хранении графиков

This commit is contained in:
IoT Manager
2023-11-11 23:19:27 +01:00
parent abbb023b6a
commit 40122a2b21

View File

@@ -276,7 +276,7 @@ class Loging : public IoTItem {
void deleteLastFile() {
IoTFSInfo tmp = getFSInfo();
SerialPrint("i", "Loging", String(tmp.freePer) + " % free flash remaining");
if (tmp.freePer <= 20.00) {
if (tmp.freePer <= 50.00) {
String dir = "/lg/" + id;
filesList = getFilesList(dir);
int i = 0;
@@ -300,9 +300,7 @@ class Loging : public IoTItem {
_wsNum = wsNum;
}
String getValue() {
return "";
}
String getValue() { return ""; }
// void loop() {
// if (enableDoByInt) {
@@ -331,14 +329,10 @@ class Loging : public IoTItem {
}
// просто максимальное количество точек
int calculateMaxCount() {
return 86400;
}
int calculateMaxCount() { return 86400; }
// путь вида: /lg/log/1231231.txt
unsigned long getFileUnixLocalTime(String path) {
return gmtTimeToLocal(selectToMarkerLast(deleteToMarkerLast(path, "."), "/").toInt() + START_DATETIME);
}
unsigned long getFileUnixLocalTime(String path) { return gmtTimeToLocal(selectToMarkerLast(deleteToMarkerLast(path, "."), "/").toInt() + START_DATETIME); }
void setValue(const IoTValue &Value, bool genEvent = true) {
value = Value;
this->SetDoByInterval(String(value.valD));
@@ -400,6 +394,4 @@ class Date : public IoTItem {
}
};
void *getAPI_Date(String param) {
return new Date(param);
}
void *getAPI_Date(String param) { return new Date(param); }