Hi. I have an Enviro Indoor that stopped connecting to WiFi last year that I just got around to fiddling with. From the logs it wasn't seeing any of my wifi SSIDs, and even a small test script to just run a wlan.scan() failed to return any of my SSIDs. I installed the stock MicroPython RPI_PICO_W-20260406-v1.28.0.uf2 and ran the same test script, and it connected to my wifi within 1-2 seconds. Reflashing back to the Enviro pimoroni-enviro-v1.22.2-micropython-enviro-v0.2.0.uf2 image returned to the script being unable to connect, and not seeing the SSIDs at all.
I'm not sure if the Enviro is still being supported, but I was unable to install the Enviro zip over a stock MicroPython 1.28 install due to missing libraries needed for the I2C communication. I noticed pimoroni/pimoroni-pico#1127 on your pimoroni-pico repo mentioning MicroPython 1.28 and thought I'd come mention this here as well for visibility.
For reference, this is the test script I'm using to test:
import network
import time
SSID = "<SSID>"
PASSWORD = "<WIFI PASSWORD>"
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
print("Scanning...")
for net in wlan.scan():
print(net)
print("Connecting...")
wlan.connect(SSID, PASSWORD)
for i in range(20):
print(i, wlan.status(), wlan.isconnected())
if wlan.isconnected():
break
time.sleep(1)
print("Connected:", wlan.isconnected())
if wlan.isconnected():
print(wlan.ifconfig())
Hi. I have an Enviro Indoor that stopped connecting to WiFi last year that I just got around to fiddling with. From the logs it wasn't seeing any of my wifi SSIDs, and even a small test script to just run a
wlan.scan()failed to return any of my SSIDs. I installed the stock MicroPythonRPI_PICO_W-20260406-v1.28.0.uf2and ran the same test script, and it connected to my wifi within 1-2 seconds. Reflashing back to the Enviropimoroni-enviro-v1.22.2-micropython-enviro-v0.2.0.uf2image returned to the script being unable to connect, and not seeing the SSIDs at all.I'm not sure if the Enviro is still being supported, but I was unable to install the Enviro zip over a stock MicroPython 1.28 install due to missing libraries needed for the I2C communication. I noticed pimoroni/pimoroni-pico#1127 on your
pimoroni-picorepo mentioning MicroPython 1.28 and thought I'd come mention this here as well for visibility.For reference, this is the test script I'm using to test: