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

Devices with Watchdog Timers #7

Open
coolacid opened this issue Jul 14, 2018 · 2 comments
Open

Devices with Watchdog Timers #7

coolacid opened this issue Jul 14, 2018 · 2 comments

Comments

@coolacid
Copy link

So far it appears this library will almost drop in working on an ESP8266.

Unfortunately, (or fortunately?) this module (and the ESP32) has a software and hardware watchdog timers. This causes the module to reboot if the timer isn't fed.

The begin function for this library uses so many timeouts and delays that it's darn near impossible to trigger a full startup before the watchdog timer triggers.

I'm thinking that the begin should be drastically reduced, and a new startup function be created with an internal counter - in that it does each step within each run of the loop() method. Thus, the WDT could be fed between each step allowing for the maximum time for each command to run.

There might be better ways to solve this, I'm just starting trying to get this to work.

@coolacid
Copy link
Author

This is sooo much easier to solve then I expected. A simple delay(10); in the wait loops causes a WDT Feed. PR forthcoming later.

@pfabri
Copy link

pfabri commented Apr 16, 2020

@coolacid Could you please share your solution to this? Thanks!

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