-
Notifications
You must be signed in to change notification settings - Fork 7.6k
smartconfig bug #275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
the Router2 IP Address should be 192.168.1.*** |
hmm.. can you confirm that it connects actually to the other access point? If you use ArduinoIDE, please enable debug level "Verbose" or "Debug" so we see what events come from WiFi. When printing the IP, print SSID as well. |
ok! it connects to one access point, it printing: [D][WiFiGeneric.cpp:174] _eventCallback(): Event: 2 - STA_START connets the other access point, it pringting: [D][WiFiGeneric.cpp:174] _eventCallback(): Event: 2 - STA_START iCh lock . ...[D][WiFiSTA.cpp:564] _smartConfigCallback(): ssid = MOLMC-NETGRAR I am printing the Received ssid and password, but connecting seems no work! |
Both routers are on the same network? they have DHCP enabled? |
not the same network , enable DHCP. using the example of smartconfig. |
@me-no-dev smartconfig example is ok for you ? |
Sorry guys, just forgot to reply, but I will advise you to file the issue at espressif/esp-idf, because the problem is somewhere in the system wifi libs. It looks like once you connect, the configuration is not overwritten and it connects to the last station configured. |
OK, let me try a few things and see if I can fix this without hackery. |
Oh this is embarrassing :D check which interface is the new setting set on... https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFi/src/WiFiSTA.cpp#L564 |
thanks! |
I use the smartconfig example, but had a problem.
when I config a device to connect to Router1, it return:
Waiting for SmartConfig. .................... SmartConfig received. Waiting for WiFi .....WiFi Connected. IP Address: 192.168.3.207 ets Jun 8 2016 00:22:57
I change the Router2, it return:
Waiting for SmartConfig. ............................................................................................................................ SmartConfig received. Waiting for WiFi .....WiFi Connected. IP Address: 192.168.3.207
why IP Address is the same?
The text was updated successfully, but these errors were encountered: