Threads or uasyncio ?

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
prem111
Posts: 127
Joined: Sun Feb 23, 2020 3:18 pm

Threads or uasyncio ?

Post by prem111 » Mon Mar 02, 2020 10:51 am

Hi.

I need to send and receive from UART in threads. What is better to use threading or uasyncio (esp32) ?

Thanks for help!

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Threads or uasyncio ?

Post by pythoncoder » Mon Mar 02, 2020 10:56 am

I recommend uasyncio. For the reasons see the tutorial in this repo.
Peter Hinch
Index to my micropython libraries.

Post Reply