From 170af78f289a80e627e50ac0d1c6ac4c370d3ca2 Mon Sep 17 00:00:00 2001 From: Pablo2048 Date: Sat, 28 Nov 2020 11:40:28 +0100 Subject: [PATCH] Moznost nadefinovat vlastni titulek pro webovou stranku a popisku v prohlizeci --- library.json | 4 ++-- library.properties | 2 +- src/WiFiConfig.cpp | 2 ++ src/embHTML.h | 12 ++++++++++-- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/library.json b/library.json index 750213d..c61fe73 100644 --- a/library.json +++ b/library.json @@ -10,9 +10,9 @@ "repository": { "type": "git", - "url": "http://git.xpablo.cz/pablo2048/WiFiConfig.git" + "url": "https://git.xpablo.cz/pablo2048/WiFiConfig.git" }, - "version": "6.3.4", + "version": "6.3.5", "license": "MIT", "frameworks": "arduino", "platforms": ["espressif8266", "espressif32"], diff --git a/library.properties b/library.properties index 9037033..89f7fb7 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=WiFiConfig -version=6.3.4 +version=6.3.5 author=Pavel Brychta maintainer=Pavel Brychta sentence=Enables seamless module configuration. diff --git a/src/WiFiConfig.cpp b/src/WiFiConfig.cpp index def10b4..401285f 100644 --- a/src/WiFiConfig.cpp +++ b/src/WiFiConfig.cpp @@ -1,4 +1,6 @@ /* + * v6.3.5-28.11.2020 - moznost nadefinovat titulek webove stranky a popisek okna v prohlizeci pomoci WIFICONFIG_TITLE a WIFICONFIG_WEBTITLE + * * v6.3.4-23.3.2020 - staticka konfigurace v AP rezimu funkcni * * v6.3.3-27.10.2019 - volani WS_CONNECTED i v pripade, ze bezi AP diff --git a/src/embHTML.h b/src/embHTML.h index 13e6aff..5f5dc74 100644 --- a/src/embHTML.h +++ b/src/embHTML.h @@ -1,10 +1,18 @@ // HTML data +#ifndef WIFICONFIG_WEBTITLE +# define WIFICONFIG_WEBTITLE "xPablo.cz Setup" +#endif + +#ifndef WIFICONFIG_TITLE +# define WIFICONFIG_TITLE "ESP WiFiConfig" +#endif + static const char TEXTHTML[] PROGMEM = "text/html"; static const char TEXTPLAIN[] PROGMEM = "text/plain"; static const char PAGE_INDEX1[] PROGMEM = R"=====( -xPablo.cz Setup +)=====" WIFICONFIG_WEBTITLE R"=====(