mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-13 00:46:38 +02:00
add CleanState_LockAndAlarm in app.cpp, hmRadio.h, web.cpp
and add Inverter Pulldown to serial.html
This commit is contained in:
parent
6e1e758fd2
commit
13aa06e5d9
4 changed files with 68 additions and 18 deletions
|
@ -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}");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue