Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not a bug, a better option on the ESP8266: using TelnetStream for console #130

Open
rin67630 opened this issue Sep 2, 2024 · 0 comments

Comments

@rin67630
Copy link

rin67630 commented Sep 2, 2024

Since the ESP8266 has only one full UART, you have an option to sent the console messages to Telnet instead.
Once the Setup is finished, you perform Serial.swap(), which moves the hardware UART to D7 (Rx) and D8 (Tx) where you connect the PZEM probe.
Include the TelnetStream Library, instantiate it to Telnet and replace Serial1.print(...) by Telnet.print(...)
You can then monitor the values upon starting good old Telnet* at the IP address of the ESP8266, which is ways more convenient than wiring a serial connection to the half-UART on Serial1.

  • Telnet is perfect on Linux and on macOS.
    On Windows Telnet handles CR and LF in a non-standard way. I use to start WSL and start Telnet from the Linux console.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant