You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Historically (and on ESP8266 non-os) we set gateway to 0.0.0.0 on a closed network, however ESPIDF does not allow this. IDF checks that ip, gw and nm are not IPADDR_ANY (=0, =0.0.0.0) here
This blocks the event: 'SYSTEM_EVENT_STA_GOT_IP', and skips the check for IP changed.
Expected Behavior
I believe that gateway 0.0.0.0 is valid and should be permitted. What else can we set if there is no network gateway?
Actual Behavior
Setting static IP with a default gateway of 0.0.0.0 causes 'invalid static ip' and skips event: 'SYSTEM_EVENT_STA_GOT_IP', network connectivity fails.
Making a change here to remove the ...|| ip4_addr_isany_val(sta_ip.gw)... seems to work fine.
Steps to reproduce
as above.
The text was updated successfully, but these errors were encountered:
FayeY
changed the title
Static IP, STA Gateway: 0.0.0.0
[TW#25966] Static IP, STA Gateway: 0.0.0.0
Sep 2, 2018
Environment
Problem Description
Historically (and on ESP8266 non-os) we set gateway to 0.0.0.0 on a closed network, however ESPIDF does not allow this. IDF checks that ip, gw and nm are not IPADDR_ANY (=0, =0.0.0.0) here
This blocks the event: 'SYSTEM_EVENT_STA_GOT_IP', and skips the check for IP changed.
Expected Behavior
I believe that gateway 0.0.0.0 is valid and should be permitted. What else can we set if there is no network gateway?
Actual Behavior
Setting static IP with a default gateway of 0.0.0.0 causes 'invalid static ip' and skips event: 'SYSTEM_EVENT_STA_GOT_IP', network connectivity fails.
Making a change here to remove the
...|| ip4_addr_isany_val(sta_ip.gw)...
seems to work fine.Steps to reproduce
as above.
The text was updated successfully, but these errors were encountered: