I am using an ESP32-S2 in a quadcopter. I have set up a TCP server in the copter and have used the esp_log_set_vprintf() function to direct the ESP_LOG messages into the TCP server and I receive the log messages on the ground. The problem is, the messages continue to be sent out of UART0 as well. I have tried moving the TXD/RXD pins to other pins on the chip, but the messages continue to issue forth from UART0 on the default pins. The only way I can stop them is to turn off logging altogether, which also stops them from being sent to the TCP server. I need to use UART0 on the default pins to communicate with another device in the copter. I'm writing up my own logging library to use with the TCP server, but I would really like to get ESP_LOG messages as well. Any suggestions?
- Jim
ESP32-S2: Redirected log output is also coming out of UART0
Re: ESP32-S2: Redirected log output is also coming out of UART0
Nevermind. Upon further inspection I realized that the example code that I had used to create the new _log_vprintf() redirect function was, after doing the redirect, using vprintf() to write the log output to UART0. Please mark closed.
Who is online
Users browsing this forum: Baidu [Spider], Google [Bot] and 132 guests