diff --git a/code/include/defines.h b/code/include/defines.h index f563c26b..92cece7c 100644 --- a/code/include/defines.h +++ b/code/include/defines.h @@ -257,6 +257,7 @@ #endif //USE_PWM_LEDFLASH //softAP +#define ENABLE_SOFTAP #ifdef ENABLE_SOFTAP #define EXAMPLE_ESP_WIFI_SSID "AI-on-the-Edge" #define EXAMPLE_ESP_WIFI_PASS "" diff --git a/sd-card/html/wlan_config.html b/sd-card/html/wlan_config.html index 13b975b0..ad3d773f 100644 --- a/sd-card/html/wlan_config.html +++ b/sd-card/html/wlan_config.html @@ -17,6 +17,14 @@ api = "/config?"+"ssid"+document.getElementById("ssid").value+"&pwd="+document.getElementById("password").value;+"&hn="+document.getElementById("hostname").value;+"&ip="+document.getElementById("ip").value;+"&gw="+document.getElementById("gateway").value;+"&nm="+document.getElementById("netmask").value;+"&dns="+document.getElementById("dns").value;+"&rssi="+document.getElementById("threashold").value; fetch(api);} + +// var xhttp = new XMLHttpRequest(); +// xhttp.onreadystatechange = function() {if (xhttp.readyState == 4) {if (xhttp.status == 200) {document.reload();}}}; +if (!file.name.includes("remote-setup")){if (!confirm("The zip file name should contain \"...remote-setup...\". Are you sure that you have downloaded the correct file?"))return;} + +if (!file.name.includes("remote-setup")){if (!confirm("The zip file name should contain \"...remote-setup...\". Are you sure that you have downloaded the correct file?"))return;} + + function upload() { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() {