From 6e43c1eb41c87aca254e85418118c51c0d94268b Mon Sep 17 00:00:00 2001 From: Shawn A Date: Wed, 30 Aug 2017 10:24:04 -0500 Subject: [PATCH] change all forms to POST #409 --- WiFiManager.cpp | 3 ++- WiFiManager.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/WiFiManager.cpp b/WiFiManager.cpp index 3d97c04..33500f7 100644 --- a/WiFiManager.cpp +++ b/WiFiManager.cpp @@ -382,6 +382,7 @@ uint8_t WiFiManager::waitForConnectResult() { while(millis() < timeout) { status = WiFi.status(); + // @todo detect additional states, connect happens, then dhcp then get ip, there is some delay here, make sure not to timeout if waiting on IP if (status == WL_CONNECTED || status == WL_CONNECT_FAILED) { return status; } @@ -673,7 +674,7 @@ void WiFiManager::handleWifi(boolean scan) { */ void WiFiManager::handleWifiSave() { DEBUG_WM(F("WiFi save")); - + //SAVE/connect here _ssid = server->arg("s").c_str(); _pass = server->arg("p").c_str(); diff --git a/WiFiManager.h b/WiFiManager.h index 9500450..2949d2b 100644 --- a/WiFiManager.h +++ b/WiFiManager.h @@ -33,10 +33,10 @@ const char HTTP_STYLE[] PROGMEM = ""; const char HTTP_SCRIPT[] PROGMEM = ""; const char HTTP_HEAD_END[] PROGMEM = "
"; -const char HTTP_PORTAL_OPTIONS[] PROGMEM = "



"; +const char HTTP_PORTAL_OPTIONS[] PROGMEM = "



"; const char HTTP_ITEM[] PROGMEM = "
{v}
"; //const char HTTP_ITEM_PADLOCK[] PROGMEM = ""; -const char HTTP_FORM_START[] PROGMEM = "


"; +const char HTTP_FORM_START[] PROGMEM = "

"; const char HTTP_FORM_LABEL[] PROGMEM = ""; const char HTTP_FORM_PARAM[] PROGMEM = "
"; const char HTTP_FORM_END[] PROGMEM = "
";