mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Add TCP console for remote management via telnet/netcat
This commit is contained in:
parent
e97d6849d2
commit
d4d98ebbbe
6 changed files with 200 additions and 10 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue