Re: Storing and reading ssid/pass from eeprom, AP to config
Posted: Sun Jun 26, 2016 6:58 pm
Such a long time since this post but I am definately not getting my ESP8266 12E dev module to retain WiFi credentials. It would be awsome if it did. I have some code that extracts ssid and password from files on a sd card. once i get logon, if i remove the sd card there is no retained memory of last successful logon. I've tried code submitted by draco on post #14829 to search the eeprom, and all i get is garbled rubbish at the two addresses he identified a sbeing where the wifi credentials live.
schufti wrote:Hi,
just a little sidenote on the storage part:
it is not necessary to store the WiFi credentials. If you do a "WiFi.begin(ssid, pass)" with valid credentials and get connected, the esp fw stores them internal. The next time you can use "WiFi.begin("","")" and the esp fw will use the "last known good" credentials. If several attempts to (re)connect fail (or e.g. button is pressed at startup), it is time to fire up the config again.
Not a lot to spare but even simpler....