-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Cant connect to specific router #4380
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
@Viriatto Can you add this to your setup() function:
You will likely need to add this include as well:
|
@atanisoft I am getting the following compiler error: I did add the |
Sorry you will also need to include:
|
Don't be sorry I appreciate your help. I have those 3 included but I'm still getting the same compiler error |
Ok, stick with only |
Here is the output:
Another boot where it eventually got connected, then disconnected and reconnected again:
As for the issue being routed over to the different repository, do I have to do something on my end for it to happen? Thank you |
Can you try adding |
It seems like it is connecting with much ease now, not getting the AUTH_EXPIRE spam, but it is still often disconnecting after a couple of seconds/minutes:
|
That could be the AP disconnecting the client and not related to the ESP32 itself. |
Yes, because it connects just fine to mobile hotspot, just gets these errors when I try this specific router, any idea why the router could be disconnecting it? |
Not a clue. Each AP is different and not all are created equal. Many (but not all) mobile hotspots are unreliable due to not being 100% compliant to specs. |
I had a similar issue connecting using an ESP32 to run a high powered Switching Charge Controller. Scope leads near the CPU were inducing enough EMI to cause the radio to drop connections. Any thing like this possible in your design? I did a little googling and found a couple articles where folks were chasing this issue, might not be an ESP32 thing. Might read a few of these and see if there is anything that looks useful. Hope this helps. https://forum.mikrotik.com/viewtopic.php?p=541785 |
In this case the mobile hotspot actually works better than my router. Right now it is definitely working better, it fails to connect a couple of times but then connects and holds connection for some good time. Other times I boot it and it just gets stuck in an endless loop. @DougArmstrong All Im using my board for is to control a small servo, but I did see someone in that link that fixed his problem by changing router password to all lowercase, I will try that later, thank you! |
Tried changing password to lowercase and unfortunately it didn't help |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
Maybe I am missing it in the comments, but what brand access point is causing the issues here? This setting has to do with regulations. There are other settings available which may be useful.
The Distance (ACK-Timeout) setting may need some explanation:
|
[STALE_CLR] This issue has been removed from the stale queue. Please ensure activity to keep it openin the future. |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions. |
I do not know the cause of the problem, but when I removed all the connections to my espe32 except the USB, It worked for me. |
Description:
When in station mode, can connect normally to mobile hotspot without any errors or problems, but connecting to home router displays a ton of AUTH_EXPIRE, ASSOC_EXPIRE, NO_AP_FOUND and 4WAY_HANDSHAKE_TIMEOUT errors. Sometimes after dozens of these it ends up connecting for a couple of minutes/seconds before disconnecting again.
What I have tried:
Wifi.disconnect()
at the beggining ofsetup()
- CommentI have "trimmed" some of the code for easier readibility, if you think I should post the full code let me know
Debug Messages when connecting to home router:
Debug Messages when connecting to mobile hotspot:
Thank you very much for your help
The text was updated successfully, but these errors were encountered: