-
Notifications
You must be signed in to change notification settings - Fork 13.3k
WiFi.disconnect() bug #4843
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
Thanks for debunking these issues, and sorry for the inconveniences.
|
No worries, though I think this highlights the advantages of having an easy to use test procedure with good test coverage in a large project such as this. (which is understandably hard to do when dealing with an entire microcomputer like the ESP8266) Anyway, I tried the latest lwIP2 update, but at least in the example code I posted in this issue the problem seems to persist (same symptoms as already described above). |
The To be fair, I did not try your example, so I will soon. Setting up automatic testing on real hardware is being discussed. It is a certain amount of work with one esp, and will certainly be hairy if several of them need to cooperate. |
OK. Yeah, but still, good to hear there are ideas for it. |
Issue found and fixed. The lwip2-glue is no more sticking to my fingers.
In your example, I moved |
The fix works like a charm, both in this example and with the mesh code. Well glued. OK. |
Basic Infos
Platform
SDK:2.2.1(cfd48f3)/Core:win-2.5.0-dev/lwIP:2.0.3(STABLE-2_0_3_RELEASE/glue:arduino-2.4.1-10-g0c0d8c2)/BearSSL:94e9704
SDK:2.2.1(cfd48f3)/Core:win-2.5.0-dev/lwIP:2.0.3(STABLE-2_0_3_RELEASE/glue:arduino-2.4.1-11-gc4150ca)/BearSSL:94e9704
Settings in IDE
Problem Description
The fix for issue #4792 and #4711 and #4727 causes
WiFi.disconnect()
to misbehave. In WiFiDisconnectBug.ino (download below) one will find thatWiFi.disconnect()
works immediately as long as the fix is not applied. Once the lwIP2 fix is appliedWiFi.disconnect()
will only work the second time it is called (WiFi.status() == WL_CONNECTED
is still true after the firstWiFi.disconnect()
call).Due to the bug described in #4727 the example code will also fail to reconnect after the first disconnect when the lwIP2 fix is not applied. That behaviour is corrected by the fix.
Instructions for reproducing bug:
WiFi.disconnect()
"Disconnected after we called WiFi.disconnect().".The text was updated successfully, but these errors were encountered: