mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Allow payload for reboot
This commit is contained in:
parent
b3e944cb82
commit
9f69e9a03b
@ -114,6 +114,9 @@ void dispatchAttribute(String strTopic, const char * payload)
|
|||||||
} else if(strTopic == F("light")) {
|
} else if(strTopic == F("light")) {
|
||||||
dispatchBacklight(payload);
|
dispatchBacklight(payload);
|
||||||
|
|
||||||
|
} else if(cmnd == F("reboot") || cmnd == F("restart")) {
|
||||||
|
dispatchReboot(true);
|
||||||
|
|
||||||
} else if(strTopic == F("clearpage")) {
|
} else if(strTopic == F("clearpage")) {
|
||||||
dispatchClearPage(payload);
|
dispatchClearPage(payload);
|
||||||
|
|
||||||
@ -196,8 +199,6 @@ void dispatchCommand(String cmnd)
|
|||||||
haspWakeUp();
|
haspWakeUp();
|
||||||
} else if(cmnd == F("screenshot")) {
|
} else if(cmnd == F("screenshot")) {
|
||||||
// guiTakeScreenshot("/screenhot.bmp");
|
// guiTakeScreenshot("/screenhot.bmp");
|
||||||
} else if(cmnd == F("reboot") || cmnd == F("restart")) {
|
|
||||||
dispatchReboot(true);
|
|
||||||
} else if(cmnd == F("") || cmnd == F("statusupdate")) {
|
} else if(cmnd == F("") || cmnd == F("statusupdate")) {
|
||||||
dispatchStatusUpdate();
|
dispatchStatusUpdate();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user