From 6bd2c1981dd82bb175273b0d944905e0b31f0251 Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Fri, 15 Mar 2019 19:35:31 -0700 Subject: [PATCH] Update the upload HTML to NOT require JQuery --- src/WebOTA.cpp | 72 ++++++++++++++++++++++++++++++-------------------- 1 file changed, 43 insertions(+), 29 deletions(-) diff --git a/src/WebOTA.cpp b/src/WebOTA.cpp index 823c4ea..a80bbe9 100644 --- a/src/WebOTA.cpp +++ b/src/WebOTA.cpp @@ -9,19 +9,18 @@ const char *WEBOTA_VERSION = "0.1.3"; #include #include +WebServer OTAServer(8080); + // Index page const char* indexPage = "

ESP32 Index

"; -// WebOTA Page String get_ota_html() { String ota_html = ""; - ota_html += "\n"; - ota_html += "\n"; ota_html += "

WebOTA Version: " + (String) WEBOTA_VERSION + "

\n"; ota_html += "\n"; ota_html += "
\n"; - ota_html += " \n"; + ota_html += " \n"; ota_html += " \n"; ota_html += "
\n"; ota_html += "\n"; @@ -30,33 +29,48 @@ String get_ota_html() { ota_html += "\n"; ota_html += "\n"; ota_html += "\n";