You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
WifiService: print IP address on console after connecting
This commit is contained in:
@@ -137,7 +137,7 @@ class WifiService:
|
||||
# Wait up to 10 seconds for connection
|
||||
for i in range(10):
|
||||
if wlan.isconnected():
|
||||
print(f"WifiService: Connected to '{ssid}' after {i+1} seconds")
|
||||
print(f"WifiService: Connected to '{ssid}' after {i+1} seconds with IP: {wlan.ipconfig('addr4')}")
|
||||
|
||||
# Sync time from NTP server if possible
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user