File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
libraries/WiFi/examples/WiFiUDPClient Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ def get_interface_ips():
42
42
if ip not in interface_ips and ip != '127.0.0.1' :
43
43
interface_ips .append (ip )
44
44
except (subprocess .TimeoutExpired , subprocess .SubprocessError , FileNotFoundError ):
45
- pass
45
+ print ("Error: Failed to get interface IPs using system commands" )
46
+ print ("Trying fallback methods..." )
46
47
47
48
# Fallback: try to get IPs using socket methods
48
49
if not interface_ips :
@@ -54,7 +55,7 @@ def get_interface_ips():
54
55
if ip not in interface_ips and ip != '127.0.0.1' :
55
56
interface_ips .append (ip )
56
57
except socket .gaierror :
57
- pass
58
+ print ( "Error: Failed to get interface IPs using sockets" )
58
59
59
60
# Fail if no interfaces found
60
61
if not interface_ips :
You can’t perform that action at this time.
0 commit comments