Asyncio design method

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
jm54
Posts: 6
Joined: Wed Jul 24, 2019 6:37 am

Asyncio design method

Post by jm54 » Fri Jan 31, 2020 10:22 am

what is the best methode to design task with asyncio
me be sart ? , someone as link to this method or other with asyncio ?

kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: Asyncio design method

Post by kevinkk525 » Fri Jan 31, 2020 10:55 am

Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

jm54
Posts: 6
Joined: Wed Jul 24, 2019 6:37 am

Re: Asyncio design method

Post by jm54 » Fri Jan 31, 2020 5:57 pm

this link is for uasync code, i know it , i have learned with
not method like sadt ( Structured Analysis )

kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: Asyncio design method

Post by kevinkk525 » Fri Jan 31, 2020 8:25 pm

well if that's not helpful to you then maybe try to ask your question again with correct spelling because I don't understand 80% of it.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

wr300000
Posts: 32
Joined: Sun Jan 14, 2018 3:54 pm

Re: Asyncio design method

Post by wr300000 » Tue Feb 11, 2020 9:28 am

@kevinkk525, I normally build/use micropython on esp8266 and esp32 only and I currently head up for learning on asyncio and mqtt modules to implement on mostly concern with home automation which prefer smallest configuration per ESP's chip. I've got 2x esp8266 8MB FLASH, esp32 WROOM-32 4MB Flash and esp32 WROVER 4MB FLAS / 4MB SPRAM boards. Would you kindly reply below questions for me?
1. Can my esp32 WROVER 4MB FLASH/ 4MB SPRAM board written to be MQTT server rather than using Raspberry Pi Zero?
2. If yes, how can I get current suitable asyncio.py and mqtt.py, etc from ?
3. Once I got it, can I just put it in my ports/espxx/module directory before rebuilding again to save RAM ?
appreciate in advance.

kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: Asyncio design method

Post by kevinkk525 » Tue Feb 11, 2020 11:07 am

1. I don't know any mqtt server for micropython. Best to use a Pi Zero
2. The official uasyncio should be in your firmware already.
3. You can put any module into that directory to save RAM.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

wr300000
Posts: 32
Joined: Sun Jan 14, 2018 3:54 pm

Re: Asyncio design method

Post by wr300000 » Sat Feb 15, 2020 3:19 pm

@kevinkk525
I've just build and flash the latest uPython firmware on my ESP32 board but I still can not see uasyncio.py to import . Could you explain more on how can I get asyncio.py modules from ?
appreciate in advance,

kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: Asyncio design method

Post by kevinkk525 » Sat Feb 15, 2020 4:26 pm

wr300000 wrote:
Sat Feb 15, 2020 3:19 pm
@kevinkk525
I've just build and flash the latest uPython firmware on my ESP32 board but I still can not see uasyncio.py to import . Could you explain more on how can I get asyncio.py modules from ?
appreciate in advance,
https://github.com/peterhinch/micropyth ... UTORIAL.md
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

Post Reply