From 32ba7dc0d7abb4cbeceea37bb111ec95b30db3d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sun, 6 Aug 2017 19:07:43 +0200 Subject: [PATCH] fixed a lot of bugs with wifi connecting --- Makefile | 2 +- html_orig/lang/en.php | 14 ++++++- html_orig/pages/cfg_wifi_conn.php | 70 +++++++++++++++++++++++-------- user/cgi_wifi.c | 46 +++++++++++++++++--- 4 files changed, 106 insertions(+), 26 deletions(-) diff --git a/Makefile b/Makefile index 71f6ada..0b351b6 100644 --- a/Makefile +++ b/Makefile @@ -65,7 +65,7 @@ LIBS += esphttpd # compiler flags using during compilation of source files CFLAGS = -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions \ -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH \ - -Wno-address -Wno-unused -DHTTPD_MAX_BACKLOG_SIZE=4096 -DADMIN_PASSWORD=$(ADMIN_PASSWORD) \ + -Wno-address -Wno-unused -DHTTPD_MAX_BACKLOG_SIZE=8192 -DADMIN_PASSWORD=$(ADMIN_PASSWORD) \ -DGIT_HASH='"$(shell git rev-parse --short HEAD)"' # linker flags used to generate the main object file diff --git a/html_orig/lang/en.php b/html_orig/lang/en.php index 0368606..9049101 100644 --- a/html_orig/lang/en.php +++ b/html_orig/lang/en.php @@ -105,10 +105,20 @@ return [ 'wifi.conn.status' => 'Status:', 'wifi.conn.back_to_config' => 'Back to WiFi config', - 'wifi.conn.telemetry_lost' => 'Telemetry lost, something went wrong. Try again...', + 'wifi.conn.telemetry_lost' => 'Telemetry lost; something went wrong, or your device disconnected.', + 'wifi.conn.explain_android_sucks' => ' + If you\'re configuring ESPTerm via a smartphone, or were connected + from another external network, your device may lose connection and this + progress indicator won\'t work. Please wait a while (~ 15 seconds), + then check if the connection succeeded.', + + 'wifi.conn.explain_reset' => ' + To force enable the built-in AP, hold the BOOT + button until the blue LED starts flashing. Hold the button longer (until the LED + flashes rapidly) for a "factory reset".', 'wifi.conn.disabled' =>"Station mode is disabled.", - 'wifi.conn.idle' =>"Idle, not connected and with no IP.", + 'wifi.conn.idle' =>"Idle, not connected and has no IP.", 'wifi.conn.success' => "Connected! Received IP ", 'wifi.conn.working' => "Connecting to selected AP", 'wifi.conn.fail' => "Connection failed, check settings & try again. Cause: ", diff --git a/html_orig/pages/cfg_wifi_conn.php b/html_orig/pages/cfg_wifi_conn.php index 33c8b64..6474b4a 100755 --- a/html_orig/pages/cfg_wifi_conn.php +++ b/html_orig/pages/cfg_wifi_conn.php @@ -5,9 +5,15 @@ +
+

+

+
+