Page 1 of 1

uasyncio - block uart.write when reading.

Posted: Sat Apr 30, 2022 9:53 pm
by prem111
Hi. Is it possible to prevent writing to uart when data is read? in two separate threads (one for read, one for write)

Re: uasyncio - block uart.write when reading.

Posted: Sun May 01, 2022 9:41 am
by pythoncoder
You could use a Lock - see also this ref.