From 34df47e2763a965fbfa389156b5ba4adb2e06026 Mon Sep 17 00:00:00 2001 From: Mathieu Carbou Date: Mon, 3 Jun 2024 16:49:20 +0200 Subject: [PATCH] mathieucarbou/WebSerialLite @ 5.0.2 --- platformio.ini | 4 +--- src/init/Config.cpp | 6 +++++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/platformio.ini b/platformio.ini index 358b41c..611813b 100644 --- a/platformio.ini +++ b/platformio.ini @@ -123,7 +123,7 @@ build_flags = [oss] build_flags = -D APP_MODEL_OSS lib_deps = - mathieucarbou/WebSerialLite @ 5.0.1 + mathieucarbou/WebSerialLite @ 5.0.2 ayushsharma82/ElegantOTA @ 3.1.1 ; ayushsharma82/ESP-DASH @ 4.0.4 https://github.com/mathieucarbou/ayushsharma82-ESP-DASH#dev @@ -135,7 +135,6 @@ lib_ignore = [pro] build_flags = -D APP_MODEL_PRO lib_deps = - mathieucarbou/WebSerialLite @ 5.0.1 lib_ignore = [trial] @@ -146,7 +145,6 @@ build_flags = -D MYCILA_TRIAL_DURATION=345600 lib_deps = mathieucarbou/MycilaTrial @ 1.1.0 - mathieucarbou/WebSerialLite @ 5.0.1 lib_ignore = ; -------------------------------------------------------------------- diff --git a/src/init/Config.cpp b/src/init/Config.cpp index 715ce10..f3991cc 100644 --- a/src/init/Config.cpp +++ b/src/init/Config.cpp @@ -126,8 +126,12 @@ Mycila::Task initConfigTask("Init Config", [](void* params) { } // WebSerial +#ifdef APP_MODEL_PRO + WebSerialLite.setID(Mycila::AppInfo.firmware.c_str()); + WebSerialLite.setTitle((Mycila::AppInfo.name + " Web Console").c_str()); +#endif WebSerialLite.setAuthentication(YASOLR_ADMIN_USERNAME, config.get(KEY_ADMIN_PASSWORD).c_str()); - WebSerialLite.begin(webServer, "/console"); + WebSerialLite.begin(&webServer, "/console"); logger.forwardTo(&WebSerialLite); // ElegantOTA