Page 1 of 1

uart_read_bytes() concurrent behavior

Posted: Sun Sep 08, 2019 10:53 pm
by DurandA
Does uart_read_bytes() yield so other tasks can run before the timeout? If not, what is the best strategy to prevent starvation?

My goal is to read GPS data as soon as available (as done here: https://github.com/nkolban/esp32-snippe ... main/gps.c) without blocking other tasks.

Re: uart_read_bytes() concurrent behavior

Posted: Mon Sep 09, 2019 2:00 am
by WiFive
Yes

Re: uart_read_bytes() concurrent behavior

Posted: Mon Sep 09, 2019 9:25 am
by DurandA
Thanks!