From b7b15e8532cb9cf5ace747f53ce77921cc3587fc Mon Sep 17 00:00:00 2001 From: Jimmy C Date: Sat, 15 Dec 2018 21:50:02 +1100 Subject: [PATCH] Added reusable slider function - Now send the JSON keyname to update Added AdvSettings finally Added 'r' to telnetspy to allow for restarting of esp via telnet --- Arduino/BTCDieselHeater/BTCDieselHeater.ino | 3 + Arduino/BTCDieselHeater/BTCWebServer.cpp | 4 + Arduino/BTCDieselHeater/mainpage.cpp | 119 +++++++++----------- 3 files changed, 60 insertions(+), 66 deletions(-) diff --git a/Arduino/BTCDieselHeater/BTCDieselHeater.ino b/Arduino/BTCDieselHeater/BTCDieselHeater.ino index afdf49f..ef3bec2 100644 --- a/Arduino/BTCDieselHeater/BTCDieselHeater.ino +++ b/Arduino/BTCDieselHeater/BTCDieselHeater.ino @@ -919,6 +919,9 @@ void checkDebugCommands() val++; bSendVal = true; } + else if(rxVal == 'r') { + ESP.restart(); // reset the esp + } else if(rxVal == '[') { val--; bSendVal = true; diff --git a/Arduino/BTCDieselHeater/BTCWebServer.cpp b/Arduino/BTCDieselHeater/BTCWebServer.cpp index 9a4ce2b..82eb5b4 100644 --- a/Arduino/BTCDieselHeater/BTCWebServer.cpp +++ b/Arduino/BTCDieselHeater/BTCWebServer.cpp @@ -201,5 +201,9 @@ void interpretJsonCommand(char* pLine) else if(strcmp("Thermostat", it->key) == 0) { setThermostatMode(it->value.as()); } + else if(strcmp("Date", it->key) == 0) { + } + else if(strcmp("Time", it->key) == 0) { + } } } diff --git a/Arduino/BTCDieselHeater/mainpage.cpp b/Arduino/BTCDieselHeater/mainpage.cpp index 9e26a14..3c95397 100644 --- a/Arduino/BTCDieselHeater/mainpage.cpp +++ b/Arduino/BTCDieselHeater/mainpage.cpp @@ -6,10 +6,31 @@ const char* MAIN_PAGE PROGMEM = R"=====(