mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #924] Add helper getters for esp stored ssid and password #781
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#781
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 @tablatronix on GitHub (Aug 12, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/924
I already added one for SSID, add one for getting password from stuct.
@wvsbsp commented on GitHub (Aug 12, 2019):
Thanks a lot!
@tablatronix commented on GitHub (Aug 13, 2019):
ESP8266
@tablatronix commented on GitHub (Sep 11, 2019):
Adds public methods
adds private methods
String WiFi_psk(bool persistent = false) ;UNTESTED / Needs testing
ESP8266
ESP32
_esp32 is different, it typically only returns info if wifi is init, so some of these will be empty strings or persistent will be ignored
@wvsbsp commented on GitHub (Sep 22, 2019):
I tried it in two different projects, seems do do the trick.
The only thing is, that i'm not quite shure what the argument true/false is making with the result.
@tablatronix commented on GitHub (Sep 22, 2019):
One reads the default flash one reads from current config, esp32 might not matter but esp8266 will give you different configs if you disable persistent and connect to a different ssid than the default it has saved, normally you would leave it blank and get default autoconnect settings, but its there for testing as esp32 might not return anything if not connected, but it looks like some stuff was added to help wifi init and check status