Scenario class in working condition

This commit is contained in:
Dmitry Borisenko
2020-08-29 22:14:35 +03:00
parent 25d58d3471
commit 61f1ad64a1
3 changed files with 48 additions and 54 deletions

View File

@@ -131,12 +131,6 @@ void buttonOut() {
void buttonOutSet() {
String key = sCmd.order();
String state = sCmd.next();
Serial.println("==");
Serial.println(key);
Serial.println(state);
Serial.println("==");
String pin = jsonReadStr(configOptionJson, key + "_pin");
String inv = jsonReadStr(configOptionJson, key + "_inv");
if (inv == "") {
@@ -230,7 +224,7 @@ void handle_time_init() {
TIME, 1000, [&](void *) {
jsonWriteStr(configLiveJson, "time", timeNow->getTime());
jsonWriteStr(configLiveJson, "timenow", timeNow->getTimeJson());
eventGen("timenow", "");
//eventGen("timenow", "");
},
nullptr, true);
}