consultux / esp8266

GNU General Public License v3.0
0 stars 0 forks source link

need emergency break timer-based restart #1

Open consultux opened 5 years ago

consultux commented 5 years ago

if anything goes wrong during init.lua, the device might sit stuck with no ability to reset without physical access. one possible solution is a long tmr.alarm set early during boot, which would call node.restart to reboot the device. The last init action would have to clear the timer.

consultux commented 5 years ago

node.softwd seems perfect. set a high value at boot, and keep a smaller value (minutes) during normal operation. init and timer-based activities are responsible for extending the watchdog timer