Skip to content

Commit

Permalink
mathieucarbou/WebSerialLite @ 5.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Jun 3, 2024
1 parent 94c6829 commit 34df47e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 1 addition & 3 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -135,7 +135,6 @@ lib_ignore =
[pro]
build_flags = -D APP_MODEL_PRO
lib_deps =
mathieucarbou/WebSerialLite @ 5.0.1
lib_ignore =

[trial]
Expand All @@ -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 =

; --------------------------------------------------------------------
Expand Down
6 changes: 5 additions & 1 deletion src/init/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 34df47e

Please sign in to comment.