2rd rewrite of upload management error based on 3.0

Add file size before upload for SPIFFS and WebUpdate
new embedded page based on 3.0
- display fw version
   - menu link link to wiki / github
   - auto detection of index.html.gz when uploaded
   - websocket to limit to one instance
   - build batch to generate page and fw file
fix for Apple captive portal blocking websocket per @Nathan-ma suggestion
Fix update partition size in [ESP420] for ESP32
change versio to 36
This commit is contained in:
Luc
2019-09-01 16:49:12 +02:00
parent d39ea079fa
commit 732b3e719d
11 changed files with 1371 additions and 1023 deletions

View File

@@ -1907,6 +1907,14 @@ bool COMMAND::execute_command (int cmd, String cmd_params, tpipe output, level_a
#else
ESPCOM::print (F ("Sync:"), output, espresponse);
String sp = String(wifi_config.iweb_port+1);
sp += ":";
if (WiFi.getMode() == WIFI_STA) {
sp += WiFi.localIP().toString();
} else if ((WiFi.getMode() == WIFI_AP) || (WiFi.getMode() == WIFI_AP_STA)) {
sp += WiFi.softAPIP().toString();
} else {
sp += "0.0.0.0";
}
ESPCOM::print (sp.c_str(), output, espresponse);
#endif