mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #782] Hotfixes: 2nd time WebPortal doesn't connect to same wi-fi #654
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#654
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dontsovcmc on GitHub (Dec 11, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/782
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:
Esp8266/Esp32:
Hardware:
ESP Core Version: 2.4.0, staging
i don't know.
Debug Messages
If I write another wi-fi title - OK
If I don't fill Wi-Fi & Pass:
@tablatronix commented on GitHub (Dec 12, 2018):
Try hotfixes branch
@tablatronix commented on GitHub (Dec 12, 2018):
Ohh lol this is that bug in hotfixes from the other issue we were discussing
@tablatronix commented on GitHub (Dec 12, 2018):
Ill try to fix , I have been extremly busy
@Egor2101 commented on GitHub (Jan 31, 2019):
Hey. If run Web Portal second time (after good connect first time) it doesn't connect.
How to solve this problem? Thank.
@tablatronix commented on GitHub (Jan 31, 2019):
What do you mean if you run webportal a second time ? ONdemand ? Or after a reset?
@Egor2101 commented on GitHub (Jan 31, 2019):
after a reset.
@tablatronix commented on GitHub (Jan 31, 2019):
you mean when you savewifi or just after reset it wont connect ?
@tablatronix commented on GitHub (Jan 31, 2019):
I might have to fix this, it does nothing unless you set
wifiManager.setBreakAfterConfig(true);Probably need to add a param callback, else this really cannot work properly the way it has always been written.
@tablatronix commented on GitHub (Feb 7, 2019):
Anyone test this.
@dontsovcmc commented on GitHub (Feb 7, 2019):
I try to test, thank you very much!
So, I need to add
wifiManager.setBreakAfterConfig(true);to my code before start portal?@tablatronix commented on GitHub (Feb 7, 2019):
yes if you want to use the callback, for now
@dontsovcmc commented on GitHub (Feb 11, 2019):
I think, it doesn't work =(. Reconnect only if you enter wrong password, got fail, write correct.
@tablatronix commented on GitHub (Feb 12, 2019):
I thought you were entering no wifi?
@dontsovcmc commented on GitHub (Feb 12, 2019):
update log: enter =(.
If I don't enter wi-fi I see
No ssid, skipping wifi@tablatronix commented on GitHub (Feb 12, 2019):
Yeah its supposed to
@tablatronix commented on GitHub (Feb 12, 2019):
Wait so if you enter the wifi credentials they do not work? That is another open issue already
@dontsovcmc commented on GitHub (Feb 12, 2019):
Yes, second time filled wi-fi doesnt connect.
you need to fill wrong password, wait error in log, change to correct password to connect.
Yes,if fields are empty no wifi connection.
@tablatronix commented on GitHub (Feb 12, 2019):
ok well you should be able to just leave it empty now at least and it will ignore it
There is a problem reconnecting once mode changes, and the only fix was to add a disconnect, I will check the other issue and see what the problem is, I thought there was a workaround in hotfixes for that already.
@dontsovcmc commented on GitHub (Feb 12, 2019):
I imagine to build ESP test board:
3 NodeMCU:
We will be able to run scripts for different tasks
@dontsovcmc commented on GitHub (Mar 31, 2019):
Try to test connect 2nd time: Failed.
ESP-12
Branch: hotfix
I found a HACK:
in ESP8266WiFiSTA.cpp
@dontsovcmc commented on GitHub (Apr 1, 2019):
@tablatronix look, I think, I found a bug in ESP8266WiFiSTA!
Wow.. I debugging ESP8266WiFiSTA.cpp, so this is not your bugs..
I try to understand: is configurations are same? I print structures as hex and see, that
setmem 0when creating.Look! Is the same SSID & password Wi-Fi structures are same?
I make:
It works!
@dontsovcmc commented on GitHub (Apr 1, 2019):
I return sta_config_equal back: FAILED, so the problem with comparing structures!
@dontsovcmc commented on GitHub (Apr 1, 2019):
there are a lot of discussions about this function here:
https://github.com/tzapu/WiFiManager/issues/702
https://github.com/esp8266/Arduino/issues/3641
@dontsovcmc commented on GitHub (Apr 1, 2019):
accepted! =)
@tablatronix commented on GitHub (Apr 1, 2019):
nice catch, thank you