Page 1 of 1

Serial Connection C++

Posted: Thu Feb 21, 2019 3:59 pm
by agustin.dubatti
Hi!

I am working on the ESP32 in C++ with the esp-idf on Linux. I need two serial communications. One with 115200 bauds and another with 9600.

I tried with the ESP32_SerialPort.h but I can't change the bauds and the UART initializes by default.

Thanks.

Re: Serial Connection C++

Posted: Fri Feb 22, 2019 6:51 am
by ESP_cermak
Hi augustin,

which API of ESP-IDF are you using? Please see the documentation to configure UART parameter here https://docs.espressif.com/projects/esp ... parameters.
You can call `uart_set_baudrate()`from C++, too

It doesn't seem ESP32_SerialPort.h comes from esp-idf, nor from Arduino?

Re: Serial Connection C++

Posted: Tue Feb 26, 2019 3:02 pm
by agustin.dubatti
Hi! I read the doc and it works. I was using a library given by the fabricant of my device.


Thank you!!