[GH-ISSUE #1575] Does not switch between wifi and ap automatically #1344

Closed
opened 2026-02-28 01:29:40 +03:00 by kerem · 5 comments
Owner

Originally created by @hackintoshlover on GitHub (Mar 23, 2023).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1575

Basic Infos

Hardware

WiFimanager Branch/Release: Master

Esp8266/Esp32: ESP32

Hardware: ESP32-Wroom

Core Version: 2.0.6

Description

I am using the example sketch Auto-Connect Non Blocking

Settings in IDE

Additional libraries: None

Problem:
After uploading the code, the esp starts in ap mode and i can access the web portal to connect it to wifi router.
But once the wifi router goes off, the device does not automatically enter into ap mode or connect to other router whose credentials are stored in it.
How do i resolve the issue?

Originally created by @hackintoshlover on GitHub (Mar 23, 2023). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1575 ### Basic Infos #### Hardware WiFimanager Branch/Release: Master Esp8266/Esp32: ESP32 Hardware: ESP32-Wroom Core Version: 2.0.6 ### Description I am using the example sketch Auto-Connect Non Blocking ### Settings in IDE Additional libraries: None Problem: After uploading the code, the esp starts in ap mode and i can access the web portal to connect it to wifi router. But once the wifi router goes off, the device does not automatically enter into ap mode or connect to other router whose credentials are stored in it. How do i resolve the issue?
kerem 2026-02-28 01:29:40 +03:00
Author
Owner

@tablatronix commented on GitHub (Mar 23, 2023):

When you say automatically, do you mean on reboot? Do you have logs?

<!-- gh-comment-id:1481179331 --> @tablatronix commented on GitHub (Mar 23, 2023): When you say automatically, do you mean on reboot? Do you have logs?
Author
Owner

@hackintoshlover commented on GitHub (Mar 23, 2023):

Not on reboot.
Consider the case below.

  1. Esp is connected to my existing wifi and working normal, as soon as my wifi turns off the esp should ideally connect to other wifi in range whose credentials are stored in it.
  2. I realised while testing that this behaviour is currently not possible with this library since it does not store multiple wifi credentials in it.

The effect that I want is that when my existing wifi goes off the esp should try and connect to other wifi whose credentials are stored in its memory when none is found it should switch to AP mode.

Is there some way using which I can achieve the desired behaviour?

<!-- gh-comment-id:1481347363 --> @hackintoshlover commented on GitHub (Mar 23, 2023): Not on reboot. Consider the case below. 1) Esp is connected to my existing wifi and working normal, as soon as my wifi turns off the esp should ideally connect to other wifi in range whose credentials are stored in it. 2) I realised while testing that this behaviour is currently not possible with this library since it does not store multiple wifi credentials in it. The effect that I want is that when my existing wifi goes off the esp should try and connect to other wifi whose credentials are stored in its memory when none is found it should switch to AP mode. Is there some way using which I can achieve the desired behaviour?
Author
Owner

@tablatronix commented on GitHub (Mar 23, 2023):

ok well esp should automatically do autoreconnect, but it seems to not work very well.
Also we can only store 1 set of credentials, otherwise you have to use multiwifi which wm does not support at this time.

<!-- gh-comment-id:1481413317 --> @tablatronix commented on GitHub (Mar 23, 2023): ok well esp should automatically do autoreconnect, but it seems to not work very well. Also we can only store 1 set of credentials, otherwise you have to use multiwifi which wm does not support at this time.
Author
Owner

@hackintoshlover commented on GitHub (Mar 23, 2023):

Would be really helpful if you could implement it.
There's a WifiManager library by khoi-zhan but that's darn slow, I tried it.

<!-- gh-comment-id:1481445555 --> @hackintoshlover commented on GitHub (Mar 23, 2023): Would be really helpful if you could implement it. There's a WifiManager library by khoi-zhan but that's darn slow, I tried it.
Author
Owner

@tablatronix commented on GitHub (Mar 24, 2023):

So you want a secondary wifi ap to fallback to? This is not really an issue as much now that mesh is a thing..

Esp supports the basic wifi creds easily but adding another is a fair amount of code. I will look into it though

<!-- gh-comment-id:1482093708 --> @tablatronix commented on GitHub (Mar 24, 2023): So you want a secondary wifi ap to fallback to? This is not really an issue as much now that mesh is a thing.. Esp supports the basic wifi creds easily but adding another is a fair amount of code. I will look into it though
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1344
No description provided.