WiFiManager: Hotfixes: 2nd time WebPortal doesn't connect to same wi-fi

Basic Infos

If run Web Portal second time (after good connect first time) it doesn’t connect. This happend both with refill Wi-Fi & pass and no fill previous Wi-Fi. If I fill another Wi-Fi - ESP connects successfully.

Hardware

WiFimanager Branch/Release:

  • [x ] HotFixes Esp8266/Esp32:
  • ESP8266

Hardware:

  • [x ] ESP01

ESP Core Version: 2.4.0, staging

  • 2.3.0
  • 2.4.0
  • staging (master/dev) i don’t know.
# ESP8266 platform
# ------------------------------
name=ESP8266 Modules
version=2.4.2

Debug Messages

*WM: Sent wifi save page
*WM: Connecting to new AP
*WM: Connecting as wifi client...
*WM: Status:
*WM: 6
*WM: [ERROR] WiFi.begin res:
*WM: 0
*WM: Waiting for connection result with time out
*WM: Connection timed out
*WM: Connection result:
*WM: 0
*WM: Failed to connect.
*WM: Request redirected to captive portal

If I write another wi-fi title - OK

*WM: Sent wifi save page
*WM: Connecting to new AP
*WM: Connecting as wifi client...
*WM: Status:
*WM: 0
*WM: [ERROR] WiFi.begin res:
*WM: 6
*WM: Waiting for connection result with time out
*WM: Connection result:
*WM: 3
000:00:02:05:224  NOTICE    (AP) : Connected to wifi. Save settings, go to sleep

If I don’t fill Wi-Fi & Pass:

*WM: Sent wifi save page
*WM: Connecting to new AP
*WM: Connecting as wifi client...
*WM: Status:
*WM: 0
*WM: Using last saved values, should be faster
*WM: Waiting for connection result with time out
*WM: Connection timed out
*WM: Connection result:
*WM: 0
*WM: Failed to connect.

// hard turned off ESP (EN = LOW)

// Wake up ESP to transmitting data - It connects successfully! 
rl␀l��|␀�l�|␂␌␌␌�␌l�␌b|��␂�␒�r�bl␌b��nn�lnn���␌b␜p��lrlrlp�n�␐␂␌␌�␌l␌��␌␌␌b␌n�|␂l�␌␌�b��nn�␀l��l`␂�␒␒nn␌l`␂␎␂nr���n␌␌b␌�␎l␎r��n␌␌b␌�␎l�bbb␌␌���l`␂��n�␂000:00:00:00:050  NOTICE    (ESP) : Booted
000:00:00:00:119  NOTICE    (WIF) : Starting Wifi
000:00:00:00:124  NOTICE    (WIF) : Wifi status: 6
....
000:00:00:03:332  NOTICE    (WIF) : Wifi status: 6
000:00:00:03:532  NOTICE    (WIF) : Connected, got IP address: 10.1.30.45
000:00:00:04:251  NOTICE    (BLK) : disconnected

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 25 (10 by maintainers)

Commits related to this issue

Most upvoted comments

nice catch, thank you