Problems with Autoconnect hanging on startup #380
Replies: 3 comments 1 reply
-
Does your hang mean that control doesn't escape from AutoConnect::begin? Also,
What specific description does it need to have? What's missing from this currently published document as here and here? |
Beta Was this translation helpful? Give feedback.
-
It looks like it does release Begin if it doesn't know where to connect to and the Captive Web Portal isn't connected but takes 30 seconds which has it seem that it is hung forever. But now that I know it takes this long, I'll just count to 40 (extra 10 for good measure. Sometimes it looks like it hasn't locked in on my WiFi when I am in a setup phase, as my display shows 0.0.0.0 that it received from WiFi.LocalIP() but if I reboot, it locks in on my WiFi and displays the IP. As for the web documentation, I have found what I am looking for, but wasn't where I expected it to be. It's actually in the JSON section that defines the AC functions. |
Beta Was this translation helpful? Give feedback.
-
Yes, it is. Because you set AutoConnectConfig::autoReconnect. Can you define the behavior for your expected WiFi connection a little more clearly? So, this topic move to the discussions. |
Beta Was this translation helpful? Give feedback.
-
I know this has been brought up before but I still am not able to get it right.
Autoconnect still seems to hang on autoconnect::begin if it isn't able to connect to the WIFi AP it last connected to.
I had it working once where it immediately dropped out of begin but not this last time.
Here's my config (solarpool is the HelloWorld renamed):
solarPoolPage.on(onSolarPool); // Register the attribute overwrite handler.
portal.join(solarPoolPage); // Join the hello page.
config.ota = AC_OTA_BUILTIN;
config.autoReset = false; // Not reset the module even by intentional disconnection using AutoConnect menu.
config.autoReconnect = true; // Reconnect to known access points.
config.reconnectInterval = 6; // Reconnection attempting interval is 3[min].
config.retainPortal = true; // Keep the captive portal open.
config.portalTimeout = 1 ;
portal.config(config);
portal.begin();
Another related issue:
As I develop my project, I am either at my house or my dad's house. Autoconnect has STA credentials for the WiFi at both sites stored and I can go to the Open SSIDs page to connect to the current one.
How do I get it to connect to the one I am located and not just the last one connected? This is when it hangs on Begin
BTW there should be a way to remove a stored SSID.
This probably should be on another issue, but can you document the non-JSON elements ACText, ACRadio, etc?
I see the corollary between these and AutoconnectElements. The HelloWorld example uses the former
Beta Was this translation helpful? Give feedback.
All reactions