GithubHelp home page GithubHelp logo

Comments (5)

khoih-prog avatar khoih-prog commented on August 21, 2024

@prattom

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.

prattom avatar prattom commented on August 21, 2024

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.

prattom avatar prattom commented on August 21, 2024

Can't be a network problem since simple esp32 wifi code with just STA mode is working fine.

from espasync_wifimanager.

prattom avatar prattom commented on August 21, 2024

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.

khoih-prog avatar khoih-prog commented on August 21, 2024

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

  1. WiFi and pppos co-exist problems (IDFGH-2548)

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.