Add TCP console for remote management via telnet/netcat (ESP32)#2197
Open
ndrpri wants to merge 7 commits intomeshcore-dev:devfrom
Open
Add TCP console for remote management via telnet/netcat (ESP32)#2197ndrpri wants to merge 7 commits intomeshcore-dev:devfrom
ndrpri wants to merge 7 commits intomeshcore-dev:devfrom
Conversation
…ime ADMIN_PASSWORD
Author
|
Update: Fixed a bug where the TCP console was using the compile-time ADMIN_PASSWORD instead of the runtime password stored in NodePrefs. Now the console correctly uses the password set via set password command, even after it has been changed without reflashing the firmware. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR adds a TCP console feature for ESP32-based repeaters and room servers,
allowing remote management via telnet or netcat over WiFi or Ethernet,
without requiring a physical LoRa radio link.
Motivation
When a repeater or room server is installed in a remote or hard-to-reach location
(e.g. rooftop, mountain), firmware updates and diagnostics currently require either
physical USB access or a working LoRa radio link. This feature adds a third option:
TCP/IP access over the existing network connection (WiFi or Ethernet).
How it works
-D TCP_CONSOLE_PORT=4242)ADMIN_PASSWORD)TCP_CONSOLE_MAX_TIMEOUT_MS)TCP_CONSOLE_MAX_CLIENTS)Usage
Changes
New files
src/helpers/esp32/TCPConsole.h— header-only TCP console implementationModified files
examples/simple_repeater/main.cpp— integrate TCPConsole whenTCP_CONSOLE_PORTandADMIN_PASSWORDare definedexamples/simple_room_server/main.cpp— sameexamples/companion_radio/main.cpp— same (no-op ifADMIN_PASSWORDnot defined)Configuration
Add to your
platformio.inienvironment:Security
ADMIN_PASSWORD)TCP_CONSOLE_PORTis explicitly defined — opt-in, not enabled by defaultADMIN_PASSWORDis not definedTested