-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
WiFi.status() incorrect after reconnection #4792
Comments
@Rob58329 Can you please try this:
I will be doing more tests before making a PR for it. edit: BTW, thanks for spotting this regression bug! |
re. "cd tools/sdk/lwip2" then "make latestmaster" I can confirm that the above seems to fix the "WiFi.status() incorrect after reconnection" issue on my ESP8266s for both the above "Test code", and also for my larger "EUT" code. - Many thanks!! :-) |
I have face with the same problem. Moreover, as far as i see, you have long delays. 5000 is critical because if no instruction is made more than 6 seconds watchdog restarts the esp. Respect to your problem, i tested my esp8266 nodemcu 1.0 board in high load and try to shut down the connection. As you referred, reconnection has problems. |
from @Rob58329 (link),
This commit "lwip2: fix static address management (#4677)" breaks the
WiFi.status()
command after aWiFi.disconnect()
andWiFi.begin(ssid,pw)
.(Specifically, the
WiFi.status()==WL_CONNECTED
never returns true after the 1st successful connection & disconnection.)ie.
git checkout 758b0bd
WORKSbut
git checkout 76a14b1
FAILSMy setup is Arduino-IDE using Github-ESP8266 code, with a D1-Mini-ESP8266
Test code is show below:
The text was updated successfully, but these errors were encountered: