As a work around you could go back to an earlier version.
Releases ¡ pimoroni/presto
On my Pico Plus 2W I do the following. I can see at a glance on my OLED if the WIFI connected. It does occasionally time out on me.
You can likely do something similar with the NTP connection. It still wonât tell you why, just that it didnât connect.
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.connect(WIFI_SSID, WIFI_PASSWORD)
while wlan.isconnected() is False:
print('Waiting for connection...')
display.text("RP2350B", 30, 0, scale=2)
display.text("RM2 WIFI", 25, 18, scale=2)
display.text("PIFI24", 35, 36, scale=2)
display.text("Connecting", 15, 54, scale=2)
display.update()
led.value(1)
time.sleep(1)
if wlan.isconnected() is True:
display.set_pen(0)
display.clear()
display.set_pen(15)
display.text("RP2350B", 30, 0, scale=2)
display.text("RM2 WIFI", 25, 18, scale=2)
display.text("PIFI24", 35, 36, scale=2)
display.text("Connected", 18, 54, scale=2)
display.text("WIFI OK", 30, 72, scale=2)
display.update()
led.value(0)
time.sleep(5)
else:
display.set.pen(0)
display.clear()
display.set.pen(15)
display.text("RP2350B", 30, 0, scale=2)
display.text("RM2 WIFI", 25, 18, scale=2)
display.text("PIFI24", 35, 36, scale=2)
display.text("WIFI ??", 25, 54, scale=2)
display.update()
led.value(1)
time.sleep(5)