[GH-ISSUE #908] Use WiFiManager only on first boot #770

Open
opened 2026-02-28 01:26:58 +03:00 by kerem · 3 comments
Owner

Originally created by @array81 on GitHub (Jul 4, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/908

On my project I need do it:

  1. On first device start I need use WiFiManager to connect find and connect to WIFI;
  2. On other device start I don't want use WiFiManager but get SSID and password saved by WiFiManager and try to connect with these data until connect is established;

My device have a reset button to delete all settings (also WIFI settings) so next start WiFiManager must be run.

Is there a way to know if WiFiManager just have stored SSID and password and get these data?
In this way I can enable and disable WiFiManager on start.

Originally created by @array81 on GitHub (Jul 4, 2019). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/908 On my project I need do it: 1. On first device start I need use WiFiManager to connect find and connect to WIFI; 2. On other device start I don't want use WiFiManager but get SSID and password saved by WiFiManager and try to connect with these data until connect is established; My device have a reset button to delete all settings (also WIFI settings) so next start WiFiManager must be run. Is there a way to know if WiFiManager just have stored SSID and password and get these data? In this way I can enable and disable WiFiManager on start.
Author
Owner

@tablatronix commented on GitHub (Jul 4, 2019):

you just call esp begin(), esp stores the credentials

<!-- gh-comment-id:508578176 --> @tablatronix commented on GitHub (Jul 4, 2019): you just call esp begin(), esp stores the credentials
Author
Owner

@array81 commented on GitHub (Jul 4, 2019):

Sorry I don't understand. Can you explain to me.

<!-- gh-comment-id:508579022 --> @array81 commented on GitHub (Jul 4, 2019): Sorry I don't understand. Can you explain to me.
Author
Owner

@tablatronix commented on GitHub (Jul 4, 2019):

wifimanger does not save anything, esp does, so just use esp functions, also autoconnect already only lanches the captiveportal if the connection fails.

<!-- gh-comment-id:508582440 --> @tablatronix commented on GitHub (Jul 4, 2019): wifimanger does not save anything, esp does, so just use esp functions, also autoconnect already only lanches the captiveportal if the connection fails.
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#770
No description provided.