Installing _thread module

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
aihrig
Posts: 6
Joined: Mon Aug 17, 2020 10:25 pm

Installing _thread module

Post by aihrig » Mon Aug 17, 2020 10:29 pm

Hi all,

I'm new to MicroPython, trying to get MicroWebSrv2 running and it requires the _thread module which does not appear to be part of the image for the ESP8266.

Can anyone guide me on installing this?

Thanks for any assistance!
Arlo

User avatar
rcolistete
Posts: 338
Joined: Thu Dec 31, 2015 3:12 pm
Location: Brazil
Contact:

Re: Installing _thread module

Post by rcolistete » Tue Aug 18, 2020 9:47 pm

There is no thread support on MicroPython for ESP8266, see :
- GitHub issue #3667 "esp8266: multi threading";
- topic "Thread support ESP8266 build" in MicroPython Forum.
My "MicroPython Samples". My "MicroPython Firmwares" with many options (double precision, ulab, etc).

aihrig
Posts: 6
Joined: Mon Aug 17, 2020 10:25 pm

Re: Installing _thread module

Post by aihrig » Tue Aug 18, 2020 9:49 pm

Darn - thank you. Time to switch to ESP32 then.

User avatar
rcolistete
Posts: 338
Joined: Thu Dec 31, 2015 3:12 pm
Location: Brazil
Contact:

Re: Installing _thread module

Post by rcolistete » Wed Aug 19, 2020 6:21 am

My "MicroPython Samples". My "MicroPython Firmwares" with many options (double precision, ulab, etc).

User avatar
pythoncoder
Posts: 4949
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Installing _thread module

Post by pythoncoder » Wed Aug 19, 2020 11:17 am

uasyncio
Which is supported on ESP8266 and is much more efficient that threading. Applications using it are also less prone to nasty runtime bugs.
Peter Hinch

Post Reply