Page 1 of 1

Yielding control - WDT

Posted: Sun Mar 24, 2019 8:21 pm
by MorseIot
The ESP8266 is a single threaded processor. This means it can only do one thing at a
time as there are no parallel threads that can be executed concurrently with each other.

For the OS to take control, without happening the WDT, expressiv system firmware, use yield () to pass control to the OS. In Micropython what would be the command or routine equivalent to yield () ???

Thanks

Re: Yielding control - WDT

Posted: Sun Mar 24, 2019 10:02 pm
by Christian Walther
None is needed. MicroPython does that automatically in between executing Python instructions.

Are you having a specific problem that is triggering the WDT, or are you just asking out of curiosity?

Re: Yielding control - WDT

Posted: Sun Mar 24, 2019 11:27 pm
by MorseIot
Christian Walther wrote:
Sun Mar 24, 2019 10:02 pm
None is needed. MicroPython does that automatically in between executing Python instructions.

Are you having a specific problem that is triggering the WDT, or are you just asking out of curiosity?
I'm having a specific problem that this triggering the WDT.