diff --git a/WebCfgServer.cpp b/WebCfgServer.cpp index ca13bb2..6c91c0c 100644 --- a/WebCfgServer.cpp +++ b/WebCfgServer.cpp @@ -2,6 +2,7 @@ #include "PreferencesKeys.h" #include "Version.h" #include "hardware/WifiEthServer.h" +#include WebCfgServer::WebCfgServer(NukiWrapper* nuki, NukiOpenerWrapper* nukiOpener, Network* network, EthServer* ethServer, Preferences* preferences, bool allowRestartToPortal) : _server(ethServer), @@ -453,7 +454,15 @@ void WebCfgServer::buildCredHtml(String &response) void WebCfgServer::buildOtaHtml(String &response) { buildHtmlHeader(response); - response.concat("
Choose a file to upload:
"); + + if(millis() < 60000) + { + response.concat("OTA functionality not ready. Please wait a moment and reload."); + response.concat(""); + return; + } + + response.concat("Choose the updated nuki_hub.bin file to upload:
"); response.concat("
"); response.concat("
Initiating Over-the-air update. This will take about a minute, please be patient.
You will be forwarded automatically when the update is complete.
"); response.concat("