Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to reset watchdog timer #859

Closed
gfwilliams opened this issue May 17, 2016 · 3 comments
Closed

Ability to reset watchdog timer #859

gfwilliams opened this issue May 17, 2016 · 3 comments

Comments

@gfwilliams
Copy link
Member

http://forum.espruino.com/conversations/782/#comment12989310

E.enableWatchdog(timeout_in_seconds) should maybe be:

E.enableWatchdog(timeout_in_seconds, auto(bool=true) )

Then E.kickWatchdog() could be added, so you could set auto to false (in which case the interpreter didn't reset the watchdog). You could then use E.kickWatchdog() from JS to manually kick it.

@ceremcem
Copy link

ceremcem commented Jul 5, 2016

Thank you!

@gfwilliams
Copy link
Member Author

No problem - as discussed before this doesn't work in ESP8266 though, because it only has one watchdog timer, which is used by the internal WiFi stuff.

@ceremcem
Copy link

ceremcem commented Jul 5, 2016

Well, this hurt :D We found some cute watchdog ic's for this kind of small tasks for ESP8266 and decided that a central supervisor unit (something more than a supervisor ic, such as a small MCU) would better suite in bigger (more critical) systems because we may need more extensive measures, such as re-flashing the ESP (and/or the other(s)). Anyway, thank you for your support :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants