Allow payload for reboot

This commit is contained in:
fvanroie 2020-03-30 15:24:15 +02:00
parent b3e944cb82
commit 9f69e9a03b

View File

@ -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 {