mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #532] Solved: Esp core 2.4.0 not reconnecting by itself automatically to WiFi #447
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#447
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 @jplavoiemtl on GitHub (Feb 19, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/532
Basic Infos
Hardware
WiFimanager Branch/Release: Development
Hardware: ESP-12e
Core Version:
Description
Strange, the esp does not reconnect automatically to WiFi. When my esp is running it connect to WiFi no problem. I have a WiFi status of 3 which is connected. Serial.println(WiFi.status());
Then I deactivate WiFi in my router to simulate a WiFi problem. After I reactivate WiFi on the router, the esp does not reconnect to WiFi. I check status at 1 second intervals and I get 6 for a WL_DISCONNECTED.
I don't understand why the module does not reconnect automatically like is should. Any help please, thanks.
Settings in IDE
Module: NodeMcu,
Additional libraries:
Sketch
Debug Messages
@tablatronix commented on GitHub (Feb 19, 2018):
try
WiFi.setAutoReconnect(true);@jplavoiemtl commented on GitHub (Feb 19, 2018):
Thanks, I just tried and added in my setup loop:
WiFi.setAutoReconnect(true);
Still no re-connection to WiFi and same WL_DISCONNECTED 6 value looping around in my serial monitor window... Doesn't WiFiManager reconnects to WiFi automatically? What can be done in case of WiFi interruptions?
@tablatronix commented on GitHub (Feb 19, 2018):
But it connects on reboot?
@tablatronix commented on GitHub (Feb 19, 2018):
Did you try development branch yet?
@jplavoiemtl commented on GitHub (Feb 19, 2018):
Yes, it connects fine on reboot. Only not reconnecting after I cut WiFi on the router then re-enabling WiFi on the router.
I tried the development branch today and I also tried the Master branch that I downloaded today. Same results, no automatic WiFi re-connection... :-(
@tablatronix commented on GitHub (Feb 19, 2018):
What version of esp core are you using might be a bug
@jplavoiemtl commented on GitHub (Feb 19, 2018):
Good point. In my Arduinio IDE librairies I see ESP8266 Built-in version 1.0.0 installed. I suppose I should get the new one at https://github.com/esp8266/Arduino and install the latest right? I'll do that tonight and install the latest 2.2.0. I will test and report after. We may be on a good track here, thanks.
I thought Arduino IDE 1.8.5 was updating all that stuff on it's own. A bit surprised I don't seem to have the latest esp core. I'll test soon.
@tablatronix commented on GitHub (Feb 19, 2018):
2.4.0 your not even running the latest sdk on that version.
@jplavoiemtl commented on GitHub (Feb 20, 2018):
A new test running with latest 2.4.0 esp8266 core. Same results, no WiFi re-connection after interruption.
I'm confused with this problem. This is a very basic setup: WiFi manager connects initially after power-up. The unit runs fine. Then after a simple WiFi interruption there is no re-connection!? Something is wrong and I can't get to the bottom of this.
@tablatronix commented on GitHub (Feb 20, 2018):
No idea that functionality is controlled by esp code, maybe remove wifimanager and just see what happens with a begin in setup then unplug oh and turn on esp debugging
@jplavoiemtl commented on GitHub (Feb 20, 2018):
I found the problem, it is a bug in esp core 2.4.0! I did revert back to esp core 2.3.0 and the WiFi reconnects fine and WiFiManager works like a charm. I built this module last year with core 2.3.0 and the WiFi got screwed with the latest 2.4.0 core. So I guess you could close my issue here.
Do you recommend opening a bug report issue on the esp8266 core github or someone will eventually find and correct it? It's a really important issue basic WiFi re-connection and I wonder how come it didn't surface in the reports on the new 2.4.0 core.
@tablatronix commented on GitHub (Feb 20, 2018):
Yes, see if one exists already though
@jplavoiemtl commented on GitHub (Feb 20, 2018):
Thanks for your help in resolving the issue to this problem @tablatronix
@tablatronix commented on GitHub (Feb 21, 2018):
be sure to link to any bugs you find so we know
@jplavoiemtl commented on GitHub (Feb 21, 2018):
There is this issue #4397 I opened on the esp8266 core group.