ESP32 UART reading problem

hamibrother
Posts: 1
Joined: Thu Dec 27, 2018 12:39 pm

ESP32 UART reading problem

Postby hamibrother » Thu Dec 27, 2018 12:43 pm

hi,
i am having difficulty reading values from uart, when is use Serial.read() from arduino ide i am getting the correct values but when i use uart_read_bytes using eclipse it did not give correct values. the source sending the values is same.

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: ESP32 UART reading problem

Postby Ritesh » Fri Dec 28, 2018 6:10 pm

hamibrother wrote:
Thu Dec 27, 2018 12:43 pm
hi,
i am having difficulty reading values from uart, when is use Serial.read() from arduino ide i am getting the correct values but when i use uart_read_bytes using eclipse it did not give correct values. the source sending the values is same.
Hi,

Would you please provide few more details with steps you have followed?

Which ESP32 IDF you are using? What are the reproduction scenario? What is return type of uart_read_bytes API? What you have connected with UART module?

Also it will be great to share code snippet as well so that we can give proper direction to resolve that issue with other requested queries.
Regards,
Ritesh Prajapati

Who is online

Users browsing this forum: Majestic-12 [Bot] and 112 guests