mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #763] IMPROVEMENT: Predefined Credentials #637
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#637
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 @SimonKlausLudwig on GitHub (Nov 2, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/763
I have the following scenario. If I am in my company I want that the ESP8266 connects to the company wifi. If I start the ESP8266 in a different environment I want that the WifiManager spins up an access point. Because we want to produce a lot of those devices it would be helpful to hardcode the predefined credentials in the code instead of using the Web interface.
If you are interested in such a feature i can help!
@tablatronix commented on GitHub (Nov 2, 2018):
wm uses default esp credentials, just use begin(ssid,pass); or some other esp method of doing this.
@mrdc commented on GitHub (Jan 7, 2020):
@tablatronix
Unfortunately, it's not working:
'class WiFiManager' has no member named 'begin'@tablatronix commented on GitHub (Jan 7, 2020):
That esp class its not wm
@mrdc commented on GitHub (Jan 8, 2020):
@tablatronix
Should I use WiFi.begin before WiFiManager code and WiFiManager will then understand that ESP is connected to WiFi and won't create AP?
@mrdc commented on GitHub (Jan 8, 2020):
Update:
Above code works, WiFiManager is not making it's own AP to configure credentials, BUT WiFiManager fails to reconnect when predefined AP is off when ESP32 starts and when I restart ESP32 it fails to connect to predefined WiFi - WiFiManager makes the AP to configure WiFi credentials. To overcome the issues I need to go to WiFiManager portal -> Info -> Remove WiFi credentials -> then after restart it successfully connects to the predefined AP.
@tablatronix commented on GitHub (Jan 8, 2020):
erase NVS sounds corrupt credentials