ESP32 Serial.setDebugOutput #7639
Replies: 2 comments 1 reply
-
In my experience .setDebugOutput(true) doesn't seem to do anything. |
Beta Was this translation helpful? Give feedback.
-
Sorry for the long delay in answering it. For the records:
By default, right after booting, Logging is set to output using UART0 (console serial port). By other hand Let's say that I want to use UART0 for connecting to an external device, but I also want to see the logging into UART1. Serial.begin(9600); // connected to an external UART hardware
Serial1.begin(115200); // Our log messages port
Serial1.setDebugOutput(true); // enables logging to be sent to UART1 and not to UART0 anymore
log_i("This log message goes to Serial1!"); Details:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
For the ESP32 can someone shed light on
Serial.setDebugOutput()
?Only info I can find is from the ESP8266 docs on Serial here, where it states:
I see the function is in the current core libraries (
HardwareSerial.h
for example), and I can trace it through to the lower level libraries but does it affect anything?Is this lingering code from porting from the ESP8266 to the ESP32?
.print()
,.println()
,.printf()
,log_x()
, andLOG_X()
all work OK without ever using.setDebugOutput( true )
( even with using WiFi).Is it turned on by default somewhere in the 'Serial' libraries?
Beta Was this translation helpful? Give feedback.
All reactions