Page 1 of 1
uasync VS socket
Posted: Sun Sep 10, 2017 3:04 am
by Pablo Oyarzo
1) Is uasync supposed to be a higher and better way to do networking than socket?
2) Where I can find documentation on the portion of uasync that is implemented on micropython ?
Re: uasync VS socket
Posted: Sun Sep 10, 2017 8:19 am
by pythoncoder
They serve different purposes - (u)asyncio is a means of doing cooperative multi-tasking which can be used for applications other than networking. Some networking applications use uasyncio, some use _thread, and others run without any multi-tasking. The usocket module implements BSD sockets which are the basis for networking applications.
There is no official documentation on the MicroPython asyncio subset, but an unofficial guide is here
https://github.com/peterhinch/micropython-async - follow the link to the tutorial.