add CleanState_LockAndAlarm in app.cpp, hmRadio.h, web.cpp

and add Inverter Pulldown to serial.html
This commit is contained in:
stefan123t 2022-10-03 23:02:37 +02:00
parent 6e1e758fd2
commit 13aa06e5d9
4 changed files with 68 additions and 18 deletions

View file

@ -392,6 +392,10 @@ void web::showWebApi(AsyncWebServerRequest *request) {
iv->devControlCmd = TurnOn;
iv->devControlRequest = true; // queue it in the request loop
}
if (response["cmd"] == (uint8_t)CleanState_LockAndAlarm) {
iv->devControlCmd = CleanState_LockAndAlarm;
iv->devControlRequest = true; // queue it in the request loop
}
}
}
request->send(200, "text/json", "{success:true}");