mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #360] moving var to public section #304
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#304
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 @dvarrel on GitHub (Apr 24, 2017).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/360
it would be appreciate to declare String _ssid and _psk in public section instead of private (WiFiManager.h).
then i can pick up these variable after successfully connected with portal and save them to eeprom
127 String _ssid = "";
128 String _pass = "";
move it to public section in WiFiManager.h
thank you
@tzapu commented on GitHub (Apr 25, 2017):
hi,
you don t need to go through wifimanager for that
just use
WiFi.SSID() and WiFi.psk()
cheers
@dvarrel commented on GitHub (Apr 25, 2017):
hi,
but i can't change it, no ?
@tzapu commented on GitHub (Apr 25, 2017):
you can change/save it with WIFi.begin(ssid, pwd) or whatever the syntax is. the standard esp8266 sdk functions
cheers
@dvarrel commented on GitHub (Apr 25, 2017):
yes, but i would like to change it before calling wifiManager.autoConnect(); and not WIFi.Begin()