khoih-prog / ESPAsync_WiFiManager

This is an ESP32 (including ESP32-S2 and ESP32-C3) / ESP8266 WiFi Connection Manager, using ESPAsyncWebServer, with fallback web configuration portal. Use this library for configuring ESP32, ESP8266 modules' WiFi, etc. Credentials at runtime. You can also specify static DNS servers, personalized HostName, fixed or random AP WiFi channel. With examples supporting ArduinoJson 6.0.0+ as well as 5.13.5- . Using AsyncDNSServer instead of DNSServer now.
MIT License
290 stars 73 forks source link

Doesn't save network credentials #58

Closed Philipp66904 closed 3 years ago

Philipp66904 commented 3 years ago

Still having this problem

The "Async_ConfigOnDoubleReset" example works fine, but the "Async_AutoConnect_ESP8266_minimal.ino" example does not. I switched to another ESP8266 and the problem is still there (so not a hardware problem). I use this library because I want an easy and convenient way to connect to my network rather than 979 lines of code for various things that I don't need at all. So it would be nice if you could test it and maybe change the code accordingly if there is a problem with it and not on my part. Thank you.

Describe the bug

I used following demo-programm after noticing it in my own code: "Async_AutoConnect_ESP8266_minimal.ino" I use an ESP8266 with core v3.0.0

Steps to Reproduce

I upload the code to my device and it starts the config portal with AP as exepected. I enter the correct network credentials and the ESP connects to my Network without a problem. But after restarting the ESP, it seems that it didn't save my credentials at all and I have to dial them in again. This happens over and over again without changing.

Expected behavior

After the first time saving the credentials it should automatically connect to the network.

Actual behavior

It asks me about my network again and says that there are no networks saved.

Information

Please ensure to specify the following:

khoih-prog commented 3 years ago

What can you expect from the minimal version of examples?

It's not designed to save the Credentials, just to show how to shorten the code, certainly with loosing all the necessary features.

bjovanovic commented 2 years ago

Well, there was a behavior change, as the exact same code used to save WiFi credentials. The change occurred with ESP Core 3.0.0. The same minimal sketch saves wifi u/p on esp8266 core v2.7.4.

As far as I could test, this did not change across Async WifiManager versions, but was somehow impacted by esp8266 core update.