логирование в процессе

This commit is contained in:
Dmitry Borisenko
2022-08-25 15:15:06 +02:00
parent bc545cc958
commit f90176879f
9 changed files with 63 additions and 12 deletions

View File

@@ -5,16 +5,24 @@ class Loging : public IoTItem {
private:
String logval;
String id;
int points;
String fileName = "";
public:
Loging(String parameters) : IoTItem(parameters) {
jsonRead(parameters, F("logid"), logval);
jsonRead(parameters, F("id"), id);
jsonRead(parameters, F("points"), points);
}
void setValue(IoTValue Value) {
value = Value;
regEvent((String)(int)value.valD, "VButton");
}
String getValue() {
return "";
// return (String)(int)value.valD;
}
void doByInterval() {
@@ -26,7 +34,7 @@ class Loging : public IoTItem {
} else {
//если время было получено из интернета
if (isTimeSynch) {
regEvent(value, "Loging");
// regEvent(value, "Loging");
String logData = String(unixTimeShort) + " " + value;
static bool firstTime = true;

View File

@@ -11,7 +11,8 @@
"descr": "График",
"int": 60,
"logid": "tmp",
"num": 1
"num": 1,
"points": 255
}
],
"about": {