Add TCP console for remote management via telnet/netcat

This commit is contained in:
Piero Andreini 2026-03-30 15:31:14 +02:00
parent e97d6849d2
commit d4d98ebbbe
6 changed files with 200 additions and 10 deletions

View file

@ -3,6 +3,11 @@
#include "MyMesh.h"
#if defined(ESP32) && defined(TCP_CONSOLE_PORT)
#include <helpers/esp32/TCPConsole.h>
TCPConsole tcp_console(ADMIN_PASSWORD, ADVERT_NAME);
#endif
#ifdef DISPLAY_CLASS
#include "UITask.h"
static UITask ui_task(display);
@ -34,6 +39,10 @@ void setup() {
board.begin();
#if defined(ESP32) && defined(TCP_CONSOLE_PORT)
tcp_console.begin();
#endif
#if defined(MESH_DEBUG) && defined(NRF52_PLATFORM)
// give some extra time for serial to settle so
// boot debug messages can be seen on terminal
@ -148,6 +157,10 @@ void loop() {
#endif
the_mesh.loop();
#if defined(ESP32) && defined(TCP_CONSOLE_PORT)
tcp_console.loop(the_mesh);
#endif
sensors.loop();
#ifdef DISPLAY_CLASS
ui_task.loop();