WebREPL setup fails in PicoW when no boot.py exists on device
import webrepl_setup fails by default unless the user happens to have created a boot.py file on device. Creating an empty boot.py makes import webrepl_setup succeed and ask for a password and reboot.
Pico W
MicroPython latest release 1.20
Getting WebREPL running on my PicoW had a ton of user friction, we need to make it so it's a lot more straightforward, perhaps by enhancing webrepl_setup to ask if they want to auto connect to WiFi, and ask for SSID/pass. Since WebREPL is useless without a WiFi connection.
WebREPL on WIZnet W5500-EVB-Pico
The a.m. board contains both the webrepl modules (webrepl.py and webrepl_setup.py). I was able to set up webrepl. However, the next time I started the board, webrepl.start() failed because the setup_conn() function expects the network interfaces class network.WLAN to exist (see lines 104ff in webrepl.py). However, on this ethernet based board, no such class exists. It seems webrepl is only meant for WiFi enabled boards.
These are the possible resolutions:
- Don't include the 'webrepl' module in the board firmware (i.e. don't include 'bundle-networking' in the boards manifest.py)
- Modify webrepl.setup_conn() function such, that it works on this board as well.