From 709cfffb95b87868f92941442d71973ef32002fd Mon Sep 17 00:00:00 2001 From: tablatronix Date: Tue, 7 Apr 2020 11:42:01 -0500 Subject: [PATCH] adds embedded logo example --- WiFiManager.cpp | 2 +- strings_en.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/WiFiManager.cpp b/WiFiManager.cpp index c5f9fd6..930baf2 100644 --- a/WiFiManager.cpp +++ b/WiFiManager.cpp @@ -943,7 +943,7 @@ void WiFiManager::handleRoot() { DEBUG_WM(DEBUG_VERBOSE,F("<- HTTP Root")); if (captivePortal()) return; // If captive portal redirect instead of displaying the page handleRequest(); - String page = getHTTPHead(FPSTR(S_options)); // @token options + String page = getHTTPHead(FPSTR(S_options)); // @token options @todo replace options with title String str = FPSTR(HTTP_ROOT_MAIN); str.replace(FPSTR(T_v),configPortalActive ? _apName : WiFi.localIP().toString()); // use ip if ap is not active for heading page += str; diff --git a/strings_en.h b/strings_en.h index bce2ebd..2560ff0 100644 --- a/strings_en.h +++ b/strings_en.h @@ -25,7 +25,8 @@ const char HTTP_SCRIPT[] PROGMEM = ""; const char HTTP_HEAD_END[] PROGMEM = "
"; - +// example of embedded logo, base64 encoded inline, No styling here +// const char HTTP_ROOT_MAIN[] PROGMEM = "

{v}

WiFiManager

"; const char HTTP_ROOT_MAIN[] PROGMEM = "

{v}

WiFiManager

"; const char * const HTTP_PORTAL_MENU[] PROGMEM = { "

\n", // MENU_WIFI