receive data from UART byte by byte

ningappa BS
Posts: 51
Joined: Sat Mar 17, 2018 4:49 am

receive data from UART byte by byte

Postby ningappa BS » Tue May 22, 2018 9:31 am

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.

newsettler_AI
Posts: 121
Joined: Wed Apr 05, 2017 12:49 pm

Re: receive data from UART byte by byte

Postby newsettler_AI » Tue May 22, 2018 10:21 am

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

Who is online

Users browsing this forum: renatopinheiro and 94 guests