-->
Page 1 of 3

WiFi manager; can't find where the SSID/Password are stored.

PostPosted: Fri Aug 07, 2020 9:11 am
by dscott
Hello all! I apologize in advance, I really tried to find this info on my own, so feel free to serve me my stupid on a plate - I'll eat it.

WifiManager v0.15.0 (as PlatformIO shows in the "Installed Libraries")

Where in the world is the SSID/Pass stored? The only answer I've managed to find is "it's an intrinsic function of the ESP8266"... when I see open source code without any apparent way to discern what it is doing, I can't help but wonder why. Maybe because I have at least one personal acquaintance that wouldn't buy an IoT device with Elon Musk's money (the dude claims to not even have a "smart TV").

Manually walking, not debugging yet, through the code leads me to the userinterface header file where I run into a bunch of wifi_station_[get... set.... connect... disconnect...] class members, mostly bool types and the trail ends there... no more beaten path goes any further. There used to be EEPROM usage at one time, or so it seems. I've gone through it grammatically to verify it's not in flash.

Any help would be much appreciated. I don't have any state secrets to hide from the Chinese manufacturer, but I do have a bank account I connect to through the same WiFi this thing appears to now all about after the configuration screen :o

Re: WiFi manager; can't find where the SSID/Password are sto

PostPosted: Fri Aug 07, 2020 3:00 pm
by JurajA
esp8266 Arduino uses esp8266 NonOS SDK functions under the hood. the SDK is not open source.
the esp8266 SDK by default automatically stores the ssid and password while joining an Access Point.
the WiFiManager uses this.
the storing can be tuned off.
the settings are stored in the last page of the flash.

here I have a minimal 'configuration AP' sketch to demonstrate this
https://github.com/jandrassy/lab/blob/m ... tionAP.ino

Re: WiFi manager; can't find where the SSID/Password are sto

PostPosted: Sat Aug 08, 2020 6:29 pm
by dscott
Thank you, JurajA! And a sketch too! You went the extra mile, very much appreciated!

Re: WiFi manager; can't find where the SSID/Password are sto

PostPosted: Thu Aug 27, 2020 10:22 am
by dscott
Followup, I still haven't found the credentials anywhere in flash; first page/sector, last, in-between... I haven't committed every free second to this as it isn't a show stopper for experimenting. But I'd still like to know where these creds are stored, and at least see them programmatically.