-
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
lwIP2 Network Switching Bug #4727
Comments
Thanks for reporting, can you please try this:
I will be doing more tests before making a PR for it. (this is the same fix as for #4792) |
Instability is not expected with this fix, any detail is appreciated. |
Based on more testing it would seem that the instability is roughly the same with the new fix as has previously been the case for lwIP2. lwIP2 does still cause more disconnects and lost server responses than lwIP1.4 when using the mesh network code, though. What has changed with the new lwIP2 fix is the behaviour when a server becomes unavailable. Before the fix only one evaluation of |
I've located the problem with the lwIP2 fix. Turns out |
Closing this since issue #4843 is now fixed, so there are no more (known) problems with the bug fix. |
Basic Infos
Platform
Hardware: ESP-12
Core Version:
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-7-g2b827f8)
SDK:2.2.1(cfd48f3)/Core:win-2.5.0-dev/lwIP:1.4.0rc2
SDK:2.2.1(cfd48f3)/Core:win-2.4.1/lwIP:2.0.3(STABLE-2_0_3_RELEASE/glue:arduino-2.4.1)
SDK:2.2.1(cfd48f3)/Core:win-2.4.1/lwIP:1.4.0rc2
Development Env: Arduino IDE
Operating System: Windows
Settings in IDE
Problem Description
This bug has two shapes depending on which Arduino core for ESP8266 version is used:
Using the latest master branch and lwIP2: The station in lwIP2_NetworkSwitchingBug.ino (download below) becomes unable to connect to any WiFi network after the first it connects to. Only if
WiFi.mode(WIFI_OFF)
is called first will a network switch be possible. This is not a problem when using lwIP1.4.Using Arduino core for ESP8266 version 2.4.1 with lwIP2: The station in lwIP2_NetworkSwitchingBug.ino (download below) becomes unable to connect to any server except the first it connects to. It can however still connect to any WiFi network.
WiFi.mode(WIFI_OFF)
does not help with this situation. This is not a problem when using lwIP1.4.Instructions for reproducing bug:
WiFi.mode(WIFI_OFF); WiFi.mode(WIFI_STA);
at line 12 of lwIP2_NetworkSwitchingBug.ino and re-start from step 8.Note: This may be a more detailed description of issue #4711 .
The text was updated successfully, but these errors were encountered: