diff --git a/src/WifiManagerTask.h b/src/WifiManagerTask.h index 2207c10..9eaaa09 100644 --- a/src/WifiManagerTask.h +++ b/src/WifiManagerTask.h @@ -43,6 +43,18 @@ protected: wm.setDebugOutput(settings.debug); //wm.setDebugOutput(settings.debug, WM_DEBUG_VERBOSE); + wm.setTitle("OpenTherm Gateway"); + wm.setCustomMenuHTML(PSTR( + "" + "
" + "
OpenTherm Gateway
" + "
Repo | Issues | Releases | v" OT_GATEWAY_VERSION " (" __DATE__ ")
" + "
" + )); + + std::vector menu = {"custom", "wifi", "param", "sep", "info", "update", "restart"}; + wm.setMenu(menu); + wmHostname = new WiFiManagerParameter("hostname", "Hostname", settings.hostname, 80); wm.addParameter(wmHostname); diff --git a/src/defines.h b/src/defines.h index 59bfedd..2189356 100644 --- a/src/defines.h +++ b/src/defines.h @@ -1,4 +1,5 @@ #define OT_GATEWAY_VERSION "1.3.3" +#define OT_GATEWAY_REPO "https://github.com/Laxilef/OTGateway" #define AP_SSID "OpenTherm Gateway" #define AP_PASSWORD "otgateway123456" #define USE_TELNET @@ -55,4 +56,4 @@ #define DEBUG(...) DEBUG_STREAM.print("\r[DEBUG] "); DEBUG_STREAM.println(__VA_ARGS__); #define DEBUG_F(...) DEBUG_STREAM.print("\r[DEBUG] "); DEBUG_STREAM.printf(__VA_ARGS__); -char buffer[120]; \ No newline at end of file +char buffer[255]; \ No newline at end of file