Comments (3)
It's not working that way.
The NUM_WIFI_CREDENTIALS is currently fixed at 2, and even you increased it to larger numbers, the library still stores maximum 2 WiFi AP Credentials.
from espasync_wifimanager.
Hi, I change NUM_WIFI_CREDENTIALS to 2, and reflash all, cleaning wifi data. The problem it´s:
I configure portal ESP8266 my mobile WiFI SSID and password:
ESPAsync_WiFiManager v1.4.2
[WM] RFC925 Hostname = ConfigOnStartup
[WM] setAPStaticIPConfig
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
ESP **Self-Stored: SSID = 1-Xiaomi MCM, Pass = 658864793Aa**
Opening configuration portal.
[WM] Add SSID = 1-Xiaomi MCM , PW = 658864793Aa**
Got ESP Self-Stored Credentials. Timeout 60s for Config Portal
Starting configuration portal.
[WM] WiFi.waitForConnectResult Done
[WM] SET AP_STA
[WM]
Configuring AP SSID = VISORCO2_FD6DB1
[WM] AP PWD = 12345678
[WM] AP Channel = 4
[WM] Custom AP IP/GW/Subnet = 192.168.4.1 192.168.4.1 255.255.255.0
[WM] AP IP address = 192.168.4.1
[WM] HTTP server started
[WM] ESPAsync_WiFiManager::startConfigPortal : Enter loop
[WM] Connecting to new AP
[WM] Previous settings invalidated
[WM] Can't use Custom STA IP/GW/Subnet
[WM] Connect to new WiFi using new IP parameters
[WM] Connected after waiting (s) : 8.41
[WM] Local ip = 192.168.1.138
[WM] Connection result: WL_CONNECTED
WiFi connected...yeey :)
At the moment, it´s ok
I restart my ESP8266, and configure in portal new router wifi:
[WM] Add SSID = DIGIFIBRA-pUNq , PW = DAYhpNt6KK**
[WM] getSTAStaticIPConfig
[WM] stationIP = (IP unset) , gatewayIP = 192.168.2.1
[WM] netMask = 255.255.255.0
[WM] dns1IP = 192.168.2.1 , dns2IP = 8.8.8.8
[WM] SaveWiFiCfgFile
[WM] OK
After waiting 0.00 secs more in setup(), connection result is connected. Local IP: 192.168.1.138
[WM] freeing allocated params!
HH
I restart my ESP8266, and switch off, my ROUTER WIFI. then must remember my mobile AP, but not, It´s awaiting for ROUTER WIFI:
Starting Async_ConfigOnStartup with DoubleResetDetect using LittleFS on ESP8266_GENERIC
ESPAsync_WiFiManager v1.4.2
[WM] RFC925 Hostname = ConfigOnStartup
[WM] setAPStaticIPConfig
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
ESP Self-Stored: SSID = DIGIFIBRA-pUNq, Pass = DAYhpNt6KK**
Opening configuration portal.
[WM] Add SSID = DIGIFIBRA-pUNq , PW = DAYhpNt6KK**
Got ESP Self-Stored Credentials. Timeout 60s for Config Portal
Starting configuration portal.
[WM] WiFi.waitForConnectResult Done
[WM] SET AP_STA
[WM]
Self-Stored: SSID ... ... and Add SSID ... ... IT´S repeat the wifi router, and don´t remember my mobile AP.
Thanks
from espasync_wifimanager.
You have to add both AP SSIDs in Config Portal to be saved.
The so-called ESP Self-Stored: SSID = DIGIFIBRA-pUNq, Pass = 12345678
is not persistent, and is temporarily stored in Flash by ESP, and will be erased whenever you either connect to new AP or lose connection. That's why you'll lose that info.
You have to see in the Debug Terminal something like
[WM] ConnectMultiWiFi with :
[WM] * Flash-stored Router_SSID = HueNet2 , Router_Pass = password2
[WM] * Additional SSID = HueNet1 , PW = password1
[WM] * Additional SSID = HueNet2 , PW = password1
to know both Credentials are stored in FileFS/EEPROM.
I suggest you use this Async_ConfigOnDoubleReset example to enter the Portal more easily by DoubleReset to verify.
from espasync_wifimanager.
Related Issues (20)
- Captive Portal hanging depending on active core for AsyncTCP HOT 6
- Configuration not saved on azdelivery devkit v2 HOT 2
- Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled. HOT 1
- ESPAsyncDNSServer depends on faulty and not maintained library ESPAsyncUDP HOT 17
- ESP32C3 doesnt show any SSID scan results. HOT 5
- "no protocol" error HOT 2
- Possible dependency Error HOT 1
- Where to put #define when using classes
- Default all parameters as part of the library
- Compilation error: WiFiMulti.h: No such file or director HOT 1
- Frequent run time error "Connecting MultiWifi..." HOT 1
- Query: some dependencies (eg ESP_DoubleResetDetector) have been archived- safe to keep using?
- how to close the AP after successfully connecting to the configured WiFi? HOT 1
- is there a way to run it "non blocking" ? HOT 1
- FS.h isn't found HOT 1
- Platformio Build Error - no matching function for call to 'LITTLEFSImpl::open HOT 3
- SPIFFS failed!. Please use LittleFS or EEPROM. Stay forever HOT 6
- Device reboot when webServer.begin(); is called HOT 2
- no matching function for call to 'LITTLEFSImpl::open(const char*&, const char [2])' HOT 1
- webServer.addHandler(&events) crashes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from espasync_wifimanager.