Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Factory reset doesn't keep WIFI credentials #2226

Closed
Wiki591 opened this issue Jan 8, 2019 · 4 comments
Closed

Factory reset doesn't keep WIFI credentials #2226

Wiki591 opened this issue Jan 8, 2019 · 4 comments
Labels
Category: Security Issues related to security Category: Settings Related to settings/configuration Type: Bug Considered a bug

Comments

@Wiki591
Copy link
Contributor

Wiki591 commented Jan 8, 2019

Tried out to do a factory reset keeping all possible five configs with ESP_Easy_mega-20190108_test_ESP8266_4096.bin.

After reboot the device started the AP mode, I entered using serial console the WIFI credentials and afterwards everything was fine - the other configs have been kept exept Wifi.

@Grovkillen
Copy link
Member

Maybe we should have it optional.

@Grovkillen Grovkillen added Category: Settings Related to settings/configuration Type: Discussion Open ended discussion (compared to specific question) Category: Security Issues related to security labels Jan 8, 2019
@Wiki591
Copy link
Contributor Author

Wiki591 commented Jan 8, 2019

Well, its already optional. I've activated it, the other settings were kept perfectly, but not the Wifi. For me personally its OK as it is. Keeping the Wifi credentials, too, would be the cherry on the cheesecake.

Btw.: genius functionality, indeed, thanks for that.

@Domosapiens
Copy link

Functionality was introduced with #2083
@Grovkillen : I think it deserves the label "bug"

@TD-er TD-er added Type: Bug Considered a bug and removed Type: Discussion Open ended discussion (compared to specific question) labels Jan 8, 2019
@TD-er
Copy link
Member

TD-er commented Jan 8, 2019

I've seen this happen before and if you look at the serial log when this happens, it will probably show you that it could not find any valid wifi credentials and thus start the AP mode.
Not sure why that happens, since I do save it after format SPIFFS and creating new settings.
It doesn't happen always. So maybe the last write doesn't flush the cached writes?
The credentials are stored in another file in the SPIFFS, so maybe we should unmount the filesystem first before reboot?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Security Issues related to security Category: Settings Related to settings/configuration Type: Bug Considered a bug
Projects
None yet
Development

No branches or pull requests

4 participants