khoih-prog / ESP_WiFiManager

This is an ESP32 / ESP8266 WiFi Connection Manager with fallback web configuration portal. Use this library for configuring ESP32 (including ESP32-S2 and ESP32-C3), 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
MIT License
371 stars 97 forks source link

Populate portal wifi with saved credentials #90

Closed vanceb closed 1 year ago

vanceb commented 1 year ago

How can I populate the config portal ssid and password fields from saved credentials?

It is possible to set the initial values for custom parameters by providing the values when you setup the parameter. How can I get a similar effect for the ssid, ssid1 and password, password1 fields? They are always blank, even when there are saved credentials!

Steps to Reproduce

Start the config portal and set the SSID and passwords for 2 different networks. Make sure that it connects to at least one of the configured networks and that credentials are stored. Reboot and initiate the config portal again - The saved credentials are not populated into the ssid1, ssid2, password1, password2 fields - they are empty

Expected behavior

I expect the wifi fields ssid1, ssid2, password1, password2 fields to be populated with the previously saved values

Actual behavior

The ssid1, ssid2, password1, password2 fields are blank