Skip to content

board: esp01_1m uart baud #63

Answered by echavet
Enjoy-Combi asked this question in Q&A
Discussion options

You must be logged in to vote

Actually, the reason for setting baud_rate to 0 is that the ESP8266 has only one hardware UART, which is by default used for logs. This component 'needs' (though I've never tested it with a software UART) the hardware UART for reliability concerns. The idea is to free up the UART by disabling the logs, thereby allowing its use for communication between the component and the unit.

I would say yes, you still need to set the baud_rate to 0, as the documentation states:
baud_rate (Optional, int): The baud rate for the serial UART port. Defaults to 115200. Set to 0 to disable logging via UART.

However, if you want to preserve UART logging capabilities, it's possible on the ESP8266 by using UART1.

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Enjoy-Combi
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by echavet
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #62 on March 18, 2024 09:23.