[WiFi] Reset wifi when IP is set to 0.0.0.0#1562
Merged
TD-er merged 1 commit intoletscontrolit:megafrom Jul 15, 2018
Merged
Conversation
As being described a few times and a screenshot shown here: letscontrolit#1302 (comment) It looks like a DHCP request may fail resulting in a cleared IP setup. The web server then still replies to requests, but no new connections can be made then. This patch should detect such a situation and then reset the wifi and make a new connection.
Contributor
|
I'm on holiday currently, but will try on sunday... However since about two weeks or so I did not see it happen anymore... |
Contributor
|
have it running now on multiple nodes and seems to be ok... however, after updating to latest esp8266 GIT core (especially after esp8266/Arduino@74819a7 ) I never had this situation anymore... therefore I guess at least it doesn't do any harm, but I'm not sure if it's needed anymore! |
Member
Author
|
Good to know, thanks for testing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As being described a few times and a screenshot shown here: #1302 (comment)
It looks like a DHCP request may fail resulting in a cleared IP setup. The web server then still replies to requests, but no new connections can be made then.
This patch should detect such a situation and then reset the wifi and make a new connection.