1 MB firmware with asyncio and aiohttp #16022
-
I have some relay devices that can only fit ESP-01. They currently run nodemcu firmware and communicate through websocket protocol with server. I would like to run MicroPython on these, but the 1MB flash size builds do not have the asyncio and aiohttp modules needed for websocket. I tried to install them afterwards and aiohttp worked, but asyncio did not:
How can I get asyncio to install? Is there any way I can build custom firmware myself with these two modules included and others missing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
Have a look github.com/peterhinch/micropython-async/blob/master/v3/docs/TUTORIAL.md |
Beta Was this translation helpful? Give feedback.
-
Asyncio is built-in for those devices with enough resources to run it. Consequently it is not mip-installable. To install it on minimal hardware I think you will have to create a custom build. |
Beta Was this translation helpful? Give feedback.
I made a build for a 1M device with asyncio and aiohttp, but without btree. Attached below.