Skip to content

[WiFi] Reset wifi when IP is set to 0.0.0.0#1562

Merged
TD-er merged 1 commit intoletscontrolit:megafrom
TD-er:bugfix/wifi_reset_empty_IP
Jul 15, 2018
Merged

[WiFi] Reset wifi when IP is set to 0.0.0.0#1562
TD-er merged 1 commit intoletscontrolit:megafrom
TD-er:bugfix/wifi_reset_empty_IP

Conversation

@TD-er
Copy link
Copy Markdown
Member

@TD-er TD-er commented Jul 11, 2018

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.

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.
@clumsy-stefan
Copy link
Copy Markdown
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...

@clumsy-stefan
Copy link
Copy Markdown
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!

@TD-er
Copy link
Copy Markdown
Member Author

TD-er commented Jul 15, 2018

Good to know, thanks for testing.

@TD-er TD-er merged commit 71b27d9 into letscontrolit:mega Jul 15, 2018
@TD-er TD-er deleted the bugfix/wifi_reset_empty_IP branch July 15, 2018 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants