added last alarm msg request

This commit is contained in:
Andreas Schiffler 2022-08-23 17:52:07 +02:00
parent cbebfea238
commit f76fbea5c2
5 changed files with 268 additions and 16 deletions

View file

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