FlyingHacker wrote:cal wrote:Moin Kolban,
The reset is done by the watchdog timer if your code blocks the main loop for too long.
Using long delays on the esp8266 will typically lead to trouble.
"Delay" might not be the ideal choice of words, as I believe that the delay() function (even delay(0)) allows the Wifi code to run if needed, and resets the watchdog timer. A loop that takes a long time without any calls to delay() (or other methods of feeding the watchdog) will causes a watchdog reset.
Just a little clarification.CMIIAW
Moin FlyingHacker,
Thanks for the clarification.
I try to be accurate but the arduino ide on the esp8266 is a weak spot for me.
I know the nodemcu and the xtos/ets delays but don't know the espduino one.
Do you have a code pointer to the delay function and the main function that calls the classic sketch loop()? (github url?)
I think I understand the needs of the underlying xtos based SDK but want to understand how that is met
by the espduino delay/loop constructs.
I tried to locate them online but failed.
Thanks,
Cal