From 0ce4785b0fee90c9ad66ebd82bb293099641142a Mon Sep 17 00:00:00 2001 From: Rhys Stevens Date: Thu, 6 Mar 2025 22:09:42 +0000 Subject: [PATCH] add the ip address to the log, when the wifi connects --- phew/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/phew/__init__.py b/phew/__init__.py index 4131b0f..037f7e1 100644 --- a/phew/__init__.py +++ b/phew/__init__.py @@ -57,6 +57,7 @@ def connect_to_wifi(ssid, password, timeout_seconds=30): time.sleep(0.25) if wlan.status() == network.STAT_GOT_IP: + logging.info(f" - IP: {wlan.ifconfig()[0]}") return wlan.ifconfig()[0] return None