mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Fix TCPConsole to use runtime NodePrefs password instead of compile-time ADMIN_PASSWORD
This commit is contained in:
parent
b2be547c33
commit
b849d1c01b
4 changed files with 20 additions and 11 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
#if defined(ESP32) && defined(TCP_CONSOLE_PORT) && defined(ADMIN_PASSWORD)
|
||||
#include <helpers/esp32/TCPConsole.h>
|
||||
TCPConsole tcp_console(ADMIN_PASSWORD, ADVERT_NAME);
|
||||
TCPConsole tcp_console(nullptr); // prefs set in setup()
|
||||
#endif
|
||||
|
||||
// Believe it or not, this std C function is busted on some platforms!
|
||||
|
|
@ -152,6 +152,9 @@ void setup() {
|
|||
#endif
|
||||
store.begin();
|
||||
the_mesh.begin(
|
||||
|
||||
tcp_console.setPrefs(the_mesh.getNodePrefs());
|
||||
|
||||
#ifdef DISPLAY_CLASS
|
||||
disp != NULL
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#if defined(ESP32) && defined(TCP_CONSOLE_PORT)
|
||||
#include <helpers/esp32/TCPConsole.h>
|
||||
TCPConsole tcp_console(ADMIN_PASSWORD, ADVERT_NAME);
|
||||
TCPConsole tcp_console(nullptr); // prefs set in setup()
|
||||
#endif
|
||||
|
||||
#ifdef DISPLAY_CLASS
|
||||
|
|
@ -104,6 +104,8 @@ void setup() {
|
|||
|
||||
the_mesh.begin(fs);
|
||||
|
||||
tcp_console.setPrefs(the_mesh.getNodePrefs());
|
||||
|
||||
#ifdef DISPLAY_CLASS
|
||||
ui_task.begin(the_mesh.getNodePrefs(), FIRMWARE_BUILD_DATE, FIRMWARE_VERSION);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#if defined(ESP32) && defined(TCP_CONSOLE_PORT)
|
||||
#include <helpers/esp32/TCPConsole.h>
|
||||
TCPConsole tcp_console(ADMIN_PASSWORD, ADVERT_NAME);
|
||||
TCPConsole tcp_console(nullptr); // prefs set in setup()
|
||||
#endif
|
||||
|
||||
#ifdef DISPLAY_CLASS
|
||||
|
|
@ -81,6 +81,8 @@ void setup() {
|
|||
|
||||
the_mesh.begin(fs);
|
||||
|
||||
tcp_console.setPrefs(the_mesh.getNodePrefs());
|
||||
|
||||
#ifdef DISPLAY_CLASS
|
||||
ui_task.begin(the_mesh.getNodePrefs(), FIRMWARE_BUILD_DATE, FIRMWARE_VERSION);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue