Comments (5)
Did you just use the example code ?
If not, can you provide the minimized code to duplicate the problem? It's possible there is some wrong config somewhere.
Is the static IP working?
It's also better to try other examples as well to see if the problem is somewhere in your local network / devices.
from espasync_wifimanager.
Yes I used exact same code Async_ConfigOnSwitch except for settings #define USE_STATIC_IP_CONFIG_IN_CP false
in the code. For static it works fine but not for DHCP mode. I tried other example also but same problem.
from espasync_wifimanager.
Can't be a network problem since simple esp32 wifi code with just STA mode is working fine.
from espasync_wifimanager.
Following is the log on first boot
[WM] RFC925 Hostname = ConfigOnSwitch
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
Stored: SSID = HELLO12307, Pass = 12345678
[WM] * Add SSID = HELLO12307 , PW = 12345678
Got stored Credentials. Timeout 120s for Config Portal
[WM] LoadWiFiCfgFile
[WM] OK
ConnectMultiWiFi in setup
[WM] ConnectMultiWiFi with :
[WM] * Flash-stored Router_SSID = HELLO12307 , Router_Pass = 19801124
[WM] Connecting MultiWifi...
[WM] WiFi connected after time: 1
[WM] SSID: HELLO12307 ,RSSI= -56
[WM] Channel: 4 ,IP address: 255.255.255.255
After waiting 4.12 secs more in setup(), connection result is connected. Local IP: 255.255.255.255
[WM] freeing allocated params!
Following is the log after pressing config switch and changing wifi settings
Configuration portal requested.
[WM] RFC925 Hostname = ConfigOnSwitch
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
Opening configuration portal. Got stored Credentials. Timeout 120s
[WM] WiFi.waitForConnectResult Done
[WM] SET AP_STA
[WM]
Configuring AP SSID = ESP_17286F24
[WM] AP PWD = 12345678
[WM] AP Channel = 9
[WM] AP IP address = 192.168.4.1
[WM] HTTP server started
[WM] ESPAsync_WiFiManager::startConfigPortal : Enter loop
E (140678) wifi: age_bss: null bss
[WM] Connecting to new AP
[WM] Previous settings invalidated
[WM] Connect to new WiFi using new IP parameters
[WM] Connected after waiting (s) : 0.70
[WM] Local ip = 255.255.255.255
[WM] Connection result: WL_CONNECTED
connected...yeey :)
Local IP: 255.255.255.255
[WM] * Add SSID = HDTTNL07 , PW = 12345678
[WM] * Add SSID = HDTTNL07 , PW = 12345678
[WM] SaveWiFiCfgFile
[WM] OK
[WM] freeing allocated params!
from espasync_wifimanager.
I retest the examples and they are all OK
1. Static IP with #define USE_STATIC_IP_CONFIG_IN_CP false
commented out
Starting Async_ConfigOnSwitch using SPIFFS on ESP32_DEV
[WM] RFC925 Hostname = ConfigOnSwitch
[WM] setSTAStaticIPConfig for USE_CONFIGURABLE_DNS
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
Stored: SSID = HueNet1, Pass = 12345678
[WM] * Add SSID = HueNet1 , PW = 12345678
Got stored Credentials. Timeout 120s for Config Portal
[WM] LoadWiFiCfgFile
[WM] OK
[WM] * Add SSID = HueNet1 , PW = 12345678
[WM] * Add SSID = HueNet2 , PW = 12345678
ConnectMultiWiFi in setup
[WM] ConnectMultiWiFi with :
[WM] * Flash-stored Router_SSID = HueNet1 , Router_Pass = 12345678
[WM] * Additional SSID = HueNet1 , PW = 12345678
[WM] * Additional SSID = HueNet2 , PW = 12345678
[WM] Connecting MultiWifi...
[WM] WiFi connected after time: 1
[WM] SSID: HueNet1 ,RSSI= -42
[WM] Channel: 2 ,IP address: 192.168.2.232
After waiting 3.09 secs more in setup(), connection result is connected. Local IP: 192.168.2.232
[WM] freeing allocated params!
2. DHCP with #define USE_STATIC_IP_CONFIG_IN_CP false
enabled => OK
Starting Async_ConfigOnSwitch using SPIFFS on ESP32_DEV
[WM] RFC925 Hostname = ConfigOnSwitch
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
Stored: SSID = HueNet1, Pass = 12345678
[WM] * Add SSID = HueNet1 , PW = 12345678
Got stored Credentials. Timeout 120s for Config Portal
[WM] LoadWiFiCfgFile
[WM] OK
[WM] * Add SSID = HueNet1 , PW = 12345678
[WM] * Add SSID = HueNet2 , PW = 12345678
ConnectMultiWiFi in setup
[WM] ConnectMultiWiFi with :
[WM] * Flash-stored Router_SSID = HueNet1 , Router_Pass = 12345678
[WM] * Additional SSID = HueNet1 , PW = 12345678
[WM] * Additional SSID = HueNet2 , PW = 12345678
[WM] Connecting MultiWifi...
[WM] WiFi connected after time: 1
[WM] SSID: HueNet1 ,RSSI= -42
[WM] Channel: 2 ,IP address: 192.168.2.82
After waiting 4.46 secs more in setup(), connection result is connected. Local IP: 192.168.2.82
[WM] freeing allocated params!
HH
Did you notify the error in your terminal output
E (140678) wifi: age_bss: null bss
It's possible something wrong / outdated in your system / hardware / firmware / ESP32 core
See some similar issue of the ESP32 core in the past
Unless you can prove and I can duplicate there is some bug in the library, I'll close the issue now and you have to work by yourself to find out what the issue is.
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.