Serial Comunication (esp32, app developer)
Posted: Wed May 26, 2021 9:07 pm
Hello everybody
I have a question about serial communication (com port)
I am currently using esp32 devkit to build a small test station. The program is very simple and is based on sending and receiving data from the esp32.
The problem arises when I have to send and receive LONG or FLOAT data. If I send a single data (such as the reading of an adc) I have no problems, but if I want to send more then I get lost.
For example in the attached program I try to send 3 float values consecutively from the esp32 card and these values must be saved in the program. files are not saved or data does not arrive.
Another thing I noticed that when I send the data from the PC, in the console are sent doubles (only when I send the floats or number). This does not happen if I send a single byte
I would like to understand if it is a timing issue or the way I send and receive data is wrong.
I have a question about serial communication (com port)
I am currently using esp32 devkit to build a small test station. The program is very simple and is based on sending and receiving data from the esp32.
The problem arises when I have to send and receive LONG or FLOAT data. If I send a single data (such as the reading of an adc) I have no problems, but if I want to send more then I get lost.
For example in the attached program I try to send 3 float values consecutively from the esp32 card and these values must be saved in the program. files are not saved or data does not arrive.
Another thing I noticed that when I send the data from the PC, in the console are sent doubles (only when I send the floats or number). This does not happen if I send a single byte
I would like to understand if it is a timing issue or the way I send and receive data is wrong.