Search found 40 matches

by enzo
Sun Feb 07, 2021 8:27 pm
Forum: General Discussion and Questions
Topic: Asyncio in uPython 1.14 has not "run"???
Replies: 18
Views: 12018

Re: Asyncio in uPython 1.14 has not "run"???

that's right. Looks like you're doing it correctly. You could try the daily firmware until we can find out whats happening (assuming the daily firmware has uasyncio v3 which I assume it does). I'll give it a try and let you know. Same problem with last unstable: MicroPython v1.14-9-g9dedcf122 on 20...
by enzo
Sun Feb 07, 2021 7:57 pm
Forum: General Discussion and Questions
Topic: Asyncio in uPython 1.14 has not "run"???
Replies: 18
Views: 12018

Re: Asyncio in uPython 1.14 has not "run"???

that's right. Looks like you're doing it correctly. You could try the daily firmware until we can find out whats happening (assuming the daily firmware has uasyncio v3 which I assume it does). I'll give it a try and let you know. Same problem with last unstable: MicroPython v1.14-9-g9dedcf122 on 20...
by enzo
Sun Feb 07, 2021 7:48 pm
Forum: General Discussion and Questions
Topic: Asyncio in uPython 1.14 has not "run"???
Replies: 18
Views: 12018

Re: Asyncio in uPython 1.14 has not "run"???

kevinkk525 wrote:
Sun Feb 07, 2021 7:27 pm
that's right. Looks like you're doing it correctly.
You could try the daily firmware until we can find out whats happening (assuming the daily firmware has uasyncio v3 which I assume it does).
I'll give it a try and let you know.
by enzo
Sun Feb 07, 2021 6:39 pm
Forum: General Discussion and Questions
Topic: Asyncio in uPython 1.14 has not "run"???
Replies: 18
Views: 12018

Re: Asyncio in uPython 1.14 has not "run"???

Since you don't have __version__, you have an old uasyncio version from before micropython 1.13.. which board are you using? What did you have on your board previously? Did you erase the flash before flashing the 1.14 firmware? If you didn't have any files before, we might have to check the 1.14 re...
by enzo
Sun Feb 07, 2021 12:52 pm
Forum: General Discussion and Questions
Topic: Asyncio in uPython 1.14 has not "run"???
Replies: 18
Views: 12018

Re: Asyncio in uPython 1.14 has not "run"???

Strange. What does this return?: "uasyncio.__version__" Did you have an older micropython on that microcontroller before and possible the files for the old uasyncio? Because this new version of uasyncio was introduced in micropython 1.13. >>> uasyncio.__version__ Traceback (most recent call last): ...
by enzo
Sun Feb 07, 2021 12:50 pm
Forum: General Discussion and Questions
Topic: Asyncio in uPython 1.14 has not "run"???
Replies: 18
Views: 12018

Re: Asyncio in uPython 1.14 has not "run"???

The code runs here on a Pyboard (just changing the pin ID's). I agree with @kevinkk525: I suspect you have old firmware. You need V1.13 or the latest V1.14. What do you see when the board boots up? MicroPython v1.14 on 2021-02-02; ESP module (1M) with ESP8266. It seems the last release. However I h...
by enzo
Sun Feb 07, 2021 3:17 am
Forum: General Discussion and Questions
Topic: Asyncio in uPython 1.14 has not "run"???
Replies: 18
Views: 12018

Asyncio in uPython 1.14 has not "run"???

Hi, I just installed MicroPython 1.14 and trying to understand non-blocking tasks I ran this example code from MicroPython 1.14 documentation: import uasyncio async def blink(led, period_ms): while True: led.on() await uasyncio.sleep_ms(5) led.off() await uasyncio.sleep_ms(period_ms) async def main(...
by enzo
Wed Jan 13, 2021 3:45 pm
Forum: General Discussion and Questions
Topic: ESP8266 WiFi client
Replies: 12
Views: 5974

Re: ESP8266 WiFi client

Thanks, I'll do so. Two notes. I do not recommend a busy wait in the loop for wait connected. better add a small delay, like: import time def connectToWifi(SSID, PW): print(ubinascii.hexlify(network.WLAN().config('mac'),':').decode()) client = network.WLAN(network.STA_IF) client.active(True) print(c...
by enzo
Tue Jan 12, 2021 11:00 pm
Forum: General Discussion and Questions
Topic: ESP8266 WiFi client
Replies: 12
Views: 5974

Re: ESP8266 WiFi client

Forget it: it is my router's DHCP pool not releasing unconnected devices. There were no more IP addresses left for the new boards: once deleted the unused ones the new boards connect.
Thanks.
by enzo
Tue Jan 12, 2021 7:57 pm
Forum: General Discussion and Questions
Topic: ESP8266 WiFi client
Replies: 12
Views: 5974

Re: ESP8266 WiFi client

Ok, now I disabled the Micropython debugger and don't see all those messages anymore. Only #6 ets_task(4020ee60, 28, 3fff8e18, 10) still appears but that's not an issue (however I'd like to be able to understand what is tells!). But can anyone please suggest me why this code: def connectToWifi(SSID,...