Yielding control - WDT

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
User avatar
MorseIot
Posts: 38
Joined: Fri Jun 29, 2018 12:32 am

Yielding control - WDT

Post by MorseIot » Sun Mar 24, 2019 8:21 pm

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

Christian Walther
Posts: 169
Joined: Fri Aug 19, 2016 11:55 am

Re: Yielding control - WDT

Post by Christian Walther » 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?

User avatar
MorseIot
Posts: 38
Joined: Fri Jun 29, 2018 12:32 am

Re: Yielding control - WDT

Post by MorseIot » Sun Mar 24, 2019 11:27 pm

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.

Post Reply