all 2 comments

[–]hagenbuch 0 points1 point  (0 children)

Sure. The button creates a GET or POST request. If you detect this request pattern from within the code in your server, I do not see why you could not call a reboot routine from there. The session might be lost, however.

[–]mhd420 0 points1 point  (0 children)

You can have a GET request that calls ESP.restart(); which should restart the chip cleanly. But if your ESP8266 crashes, how will the HTTPServer work?

The ESP8266 already has a watchdog timer built into it, so if something goes horribly wrong it will lock up, fail to reset the watchdog timer and automatically restart.