Skip to content

Conversation

d-a-v
Copy link
Collaborator

@d-a-v d-a-v commented Apr 30, 2019

For some reason, ip address is not propagated in a visible way for lwip2
when switching to static address (wifi.config()) after wifi.begin().

This patch calls lwip-v1.4's netif_set_addr() with the new ip address to set
all things up, just like it is done and right when wifi.begin() is called
after wifi.config().

Also tested when IPv6 is enabled.

fixes #5839
fixes #6024

For some reason, ip address is not propagated in a visible way for lwip2
when switching to static address (wifi.config()) *after* wifi.begin().

This patch calls lwip-v1.4's netif_set_addr() with the new ip address to set
all things up, just like it is done and right when wifi.begin() is called
after wifi.config().

Also tested when IPv6 is enabled.

fixes esp8266#5839
fixes esp8266#6024
@d-a-v d-a-v requested a review from devyte April 30, 2019 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants