[GH-ISSUE #360] moving var to public section #304

Closed
opened 2026-02-28 01:24:38 +03:00 by kerem · 4 comments
Owner

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

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
kerem closed this issue 2026-02-28 01:24:39 +03:00
Author
Owner

@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

On 24 Apr 2017, at 23:35, dam74 notifications@github.com wrote:

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


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/tzapu/WiFiManager/issues/360, or mute the thread https://github.com/notifications/unsubscribe-auth/AC2FkJoZ58nV_RfHvthMuptaqN7JprvXks5rzQd5gaJpZM4NGrX3.

<!-- gh-comment-id:296969278 --> @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 > On 24 Apr 2017, at 23:35, dam74 <notifications@github.com> wrote: > > 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 > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub <https://github.com/tzapu/WiFiManager/issues/360>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AC2FkJoZ58nV_RfHvthMuptaqN7JprvXks5rzQd5gaJpZM4NGrX3>. >
Author
Owner

@dvarrel commented on GitHub (Apr 25, 2017):

hi,
but i can't change it, no ?

<!-- gh-comment-id:296998516 --> @dvarrel commented on GitHub (Apr 25, 2017): hi, but i can't change it, no ?
Author
Owner

@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

On 25 Apr 2017, at 14:17, dam74 notifications@github.com wrote:

hi,
but i can't change it, no ?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/tzapu/WiFiManager/issues/360#issuecomment-296998516, or mute the thread https://github.com/notifications/unsubscribe-auth/AC2FkB7bag_HUCIe7oh0mNv2FV8uzYVLks5rzdY7gaJpZM4NGrX3.

<!-- gh-comment-id:296999796 --> @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 > On 25 Apr 2017, at 14:17, dam74 <notifications@github.com> wrote: > > hi, > but i can't change it, no ? > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub <https://github.com/tzapu/WiFiManager/issues/360#issuecomment-296998516>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AC2FkB7bag_HUCIe7oh0mNv2FV8uzYVLks5rzdY7gaJpZM4NGrX3>. >
Author
Owner

@dvarrel commented on GitHub (Apr 25, 2017):

yes, but i would like to change it before calling wifiManager.autoConnect(); and not WIFi.Begin()

<!-- gh-comment-id:297011059 --> @dvarrel commented on GitHub (Apr 25, 2017): yes, but i would like to change it before calling wifiManager.autoConnect(); and not WIFi.Begin()
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#304
No description provided.