-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Wifi connection fails - only works after router reboot #8412
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
You can try to force 802.11g mode:
With Asus router it worked. |
Thanks a lot ! I solved the problem |
@Toto5931 |
Thank you @d-a-v ! |
Hi there Toto, are you able to share exactly which solution solved your problem? I'm having a similar problem where my ESP8266 will be able to connect to WiFi for 20 minutes or so and then will require a restart of the router to connect again. |
@nathanielarking Just adding WiFi.setPhyMode(WIFI_PHY_MODE_11G); as proposed by @1d4rk solved my problem |
I have the same problem, downgrading the connection from N to G does not solve the problem |
@sblantipodi It didn't solve mine either, and I ended up fixing it by throwing a whole bunch of resets: I cleared the flash and wifi settings on the ESP, reverted to a previous version of my code, and defaulted the router settings, so I'm not exactly sure what works. Try re starting your code with the most basic WiFi settings possible (use the basic ESP example for connecting to WiFi) then change things from their until you get the functionality you did before. |
I had this issue and it was related to #7965 and #8299. I was able to fix it for myself by deleting the esp8266 boards from the boards manager, deleting their folders from the Arduino15 folder, installing the latest git version which includes this commit which fixed DHCP for me (will probably be included in 3.1.0?), and additionally when using Generic ESP8266 Module, using Tools->Espressif FW->"nonos-sdk2.2.1+61 (190313)" as suggested in the comments of #7965 which does not have the same issues with 802.11n. |
I had this exact same issue and doing as 1d4rk suggested: |
I wish I had found this comment about a half a day earlier. Solved the issue for me. My newer Asus router is set to “smart connect“ instead of separate 2.4 and 5 bands. This may have been the issue but I didn’t troubleshoot further once I was able to move forward on my project. |
I tested the new Arduino ESP8266 v3.1.1 Library (based on nonos_SDK v3.0.5) and it is working without any issue for now. |
Basic Infos
Platform
Settings in IDE
Problem Description
The WIFI connection is very unstable. It often works just after router restart but few times later the connection fails.
The debug message tells me that I am connected but the status stays at 0 and never goes to WL_CONNECTED
I have tried with many ESP8266 wemos d1 mini hardware it is always the same problem
The connection works fine with an ESP32.
Thanks for your help
Debug Messages
The text was updated successfully, but these errors were encountered: