добавление кнопок в элемент

This commit is contained in:
Dmitry Borisenko
2022-12-14 00:56:25 +01:00
parent d2a615c9e5
commit 2db14ed21a
9 changed files with 67 additions and 36 deletions

View File

@@ -240,6 +240,13 @@ class LogingDaily : public IoTItem {
int calculateMaxCount() {
return 86400;
}
void onModuleOrder(String &key, String &value) {
if (key == "defvalue") {
} else if (key == "reset") {
}
SerialPrint("i", F("LogingDaily"), "key " + key + ", value " + value);
}
};
void *getAPI_LogingDaily(String subtype, String param) {

View File

@@ -15,7 +15,9 @@
"logid": "t",
"points": 365,
"telegram": 0,
"test": 0
"test": 0,
"btn-defvalue": 0,
"btn-reset": "nil"
}
],
"about": {