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
1e1db4c08c
commit
ef57a6ec41
@ -114,7 +114,7 @@ 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")) {
|
} else if(strTopic == F("reboot") || strTopic == F("restart")) {
|
||||||
dispatchReboot(true);
|
dispatchReboot(true);
|
||||||
|
|
||||||
} else if(strTopic == F("clearpage")) {
|
} else if(strTopic == F("clearpage")) {
|
||||||
@ -281,8 +281,6 @@ void dispatchReboot(bool saveConfig)
|
|||||||
debugStop();
|
debugStop();
|
||||||
delay(250);
|
delay(250);
|
||||||
wifiStop();
|
wifiStop();
|
||||||
// debugPrintln(F("STOP: Properly Rebooting the MCU now!"));
|
|
||||||
// debugPrintln(F("-------------------------------------"));
|
|
||||||
Log.notice(F("STOP: Properly Rebooting the MCU now!"));
|
Log.notice(F("STOP: Properly Rebooting the MCU now!"));
|
||||||
Log.verbose(F("-------------------------------------"));
|
Log.verbose(F("-------------------------------------"));
|
||||||
ESP.restart();
|
ESP.restart();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user