-
Notifications
You must be signed in to change notification settings - Fork 13.3k
WiFi Reconnect only after power cycle #2235
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
2.1.0-rc2 is pretty old, could you please try with 2.3.0? |
ok, tried with 2.3.0 still no difference. updated above submission. |
Same issue here. Any update? Thanks. |
I'm having the same issues. This is not only fixable by rebooting but also by removing the wifi connection in the router that you connect to (or rebooting the router if that option is not available). Since the ESP doesn't send a DEAUTH message to the router so it cannot connect again. |
Try V2.2.0, it fixed my issue with WiFi.status() != WL_CONNECTED |
It may be simplistic, but this is how I fixed it. `
} ` |
@MartijnBraam - release 2.3.0 suffers from specific issue to establish Wi-Fi connection that looks similar to what you observe. The root cause and solution is provided in #2186 (comment) |
Hi All , we were also facing same issue
It did not work for us, (I am not sure whether it is a right way to fix this issue) |
Same problem here. Any news about a solution? EDIT: that work's for me:
|
@DasBasti is this issue still valid with latest git? |
I have no way to check. The project went in another direction. |
I don't observe this, but then again my dhcp setup is a bit special. |
I have a small project using the noceMCU that holds the ESP8266MOD. |
@SalCimmino At #2235 (comment), after the |
This is interesting. Can you print |
sometimes I got status 3 for 0 ms which is WL_CONNECTED.
It stalls forever, so add as many points as you like :) Edit, thought you might want to see the code (taken from my package TinyUPnP), when the for loop is commented out the while stalls forever:
|
Having a simular (or the same) issue happening.
This works fine 99% of the time. Running this test on ~50 ESP8266. Reconnect is called every 30seconds. Have tried various approaches such as
This sometimes causes crashes on the WiFi.begin(..) line. Is there a way to “properly” do a reconnect on WiFi, or a way to reset the WiFi to “hardware boot” status (delete all DHCP information, known AP, etc.)? |
Hi! I ran into a similar problem and found that described issue related to DHCP lease time. After increasing the lease time, my NodeMCU v2 fall off after 24 hours, previously there were 60 minutes, which is consistent with the settings of the DHCP server. It is likely that after the expiration of the lease of the IP address, the board cannot fulfill the request for a new lease. Recently I excluded the level of the Wi-Fi signal, which is at the level of -60 dBm, as well as the network delays that make up 4ms on average. Will try to add Regards. |
This thread is closed, please continue the discussion in #5527. |
Basic Infos
Connecting to Wifi does only work after powercycle. After Reset via external button or programming Wifi does not get an IP adress. DHCP Server shows updated lease!
Hardware
Hardware: ESP-12E
Core Version: 2.3.0
Description
Code as in example
After initial power up the connection is established. After reset it stays at the
WiFi.status() != WL_CONNECTED
part and prints out dots.The router has an entry for a refreshed lease for the MAC adress.
Settings in IDE
Module: NodeMCU 1.0 (ESP-12E Module)
Flash Size: 4MB
CPU Frequency: 80Mhz
Upload Using: SERIAL
Reset Method: nodemcu
Sketch
Debug Messages
after pressing RESET button
The text was updated successfully, but these errors were encountered: