mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1549] ESP32 RECONNECT #1322
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#1322
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 @PabloOyarzo on GitHub (Jan 14, 2023).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1549
Hi is it possible to provide a reconnect sample code?
As autoreconnect doesn't seem to be working.
Saw @tablatronix said in another issue that you check wifi status and do wifi begin again
@tablatronix commented on GitHub (Jan 14, 2023):
I think it is supposed to be working now, what are you seeing?
@PabloOyarzo commented on GitHub (Jan 14, 2023):
I Haven't turned on the debug verbose, but it doesn't reconnect automatically. I'm using an ESP32, it's using the WiFi Library from arduino esp32 the latest (which is supposed to fix all reconnect issues) and wifi managers latest too. I'm testing with a hostpot right next to the esp32.
Tried it with and without autoreconnect(true).
@PabloOyarzo commented on GitHub (Jan 17, 2023):
It works now, still would like to see that check and reconnect little snippet of code that you use please!
@yfrit83 commented on GitHub (Feb 6, 2024):
Hi, yes it work now, but only one time!
Step to get the bug :
The device need to be rebooted to reconnect.
code :
WiFi.mode(WIFI_STA);
wm.setConfigPortalBlocking(false);
wm.setConfigPortalTimeout(60);
wm.setBreakAfterConfig(true);
wm.setWiFiAutoReconnect(true);
std::vector<const char *> menu = {"wifi","wifinoscan","close","sep","erase","update","restart","exit"};
wm.setMenu(menu); // custom menu, pass vector
wm.setHostname(("WM_"+wm.getDefaultAPName()).c_str());
if(wm.autoConnect("AutoConnectAP")){
Serial.println("connected...yeey :)");
}
else {
Serial.println("Configportal running");
}
@tablatronix commented on GitHub (Feb 11, 2024):
Whats logs say?