Page 1 of 1

receive data from UART byte by byte

Posted: Tue May 22, 2018 9:31 am
by ningappa BS
hi,
is there any api which can receive data from UART byte by byte,am using
uart_read_bytes()
this API which is returning whole data but i want byte by byte each byte i want to check.

Re: receive data from UART byte by byte

Posted: Tue May 22, 2018 10:21 am
by newsettler_AI
Hi,

I suggest you to store your received data in new array and then work with it.
As far as I know, default driver will receive data from uart "as he want" :D since uart data is stream, which may be cutted at any moment.

Also you can check this topic:
https://esp32.com/viewtopic.php?f=2&t=5 ... 299#p24299