← index #11661Issue #11438
Related · high · value 4.857
QUERY · ISSUE

WebREPL setup fails in PicoW when no boot.py exists on device

openby badger200opened 2023-05-30updated 2024-09-02
bug

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.

CANDIDATE · ISSUE

WebREPL on WIZnet W5500-EVB-Pico

openby detlevoopened 2023-05-06updated 2023-05-06
bug

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:

  1. Don't include the 'webrepl' module in the board firmware (i.e. don't include 'bundle-networking' in the boards manifest.py)
  2. Modify webrepl.setup_conn() function such, that it works on this board as well.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied