diff options
author | robert-hh <robert@hammelrath.com> | 2023-10-19 15:05:59 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-10-31 12:42:33 +1100 |
commit | 9c244134fb4db921f721737763f81cd9300c2e86 (patch) | |
tree | 3ff9fafd2f84d00fcaf588e886d2d17f220185c0 /tools/codeformat.py | |
parent | c4e63ace661df9748cfae451bde7781e61e0b3d9 (diff) | |
download | micropython-9c244134fb4db921f721737763f81cd9300c2e86.tar.gz micropython-9c244134fb4db921f721737763f81cd9300c2e86.zip |
esp32/network_lan: Fix LAN.isconnected().
nic.isconnected() returns now "True", if a) the physical link is up and b)
an IP address is assigned. The latter happens often by DHCP, in which case
an active connection can be assumed. If the IP address is set manually,
nic.isconnected() would report "True" as well, if at least the physical
link is up. This matches WLAN behaviour which returns "True" when the WLAN
has an IP address.
Before, the behaviour of nic.isconneceted() was erratic, returning "True"
sometimes even without a Ethernet cable attached.
Fixes issue #12741.
Signed-off-by: robert-hh <robert@hammelrath.com>
Diffstat (limited to 'tools/codeformat.py')
0 files changed, 0 insertions, 0 deletions