Connect with Wifi
Prerequisites
Steps to Connect Pico W with WebREPL in Thonny
pythonCopy codeimport network import time ssid = "your-SSID" # Replace with your Wi-Fi name password = "your-PASSWORD" # Replace with your Wi-Fi password wlan = network.WLAN(network.STA_IF) wlan.active(True) wlan.connect(ssid, password) # Wait until connected while not wlan.isconnected(): print("Connecting to WiFi...") time.sleep(1) print("Connected to WiFi", wlan.ifconfig())
pythonCopy codeimport webrepl webrepl.start()
Troubleshooting Tips
Last updated