The uasyncio V3 class Lock not work in ESP8266

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
python_fan
Posts: 1
Joined: Tue Apr 27, 2021 8:48 am

The uasyncio V3 class Lock not work in ESP8266

Post by python_fan » Tue Apr 27, 2021 9:09 am

I'm trying to use the mqtt_as, but there is an error

>>> import uasyncio
>>> uasyncio.Lock()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "uasyncio/__init__.py", line 27, in __getattr__
ImportError: no module named 'uasyncio.lock'
>>>

My device esp8266
Firmware: esp8266-1m-20210418-v1.15.bin Daily builds, 1M of flash

But in ESP32, that works fine:

>>> import uasyncio
>>> uasyncio.Lock()
<Lock object at 3ffe6350>


any helps, thanks

Post Reply