← index #11536Issue #11661
Related · high · value 0.462
QUERY · ISSUE

Pico W : WebREPL : Ctrl-C not working

openby HopWorksopened 2023-05-18updated 2024-01-28

Discussed in https://github.com/orgs/micropython/discussions/11532

<div type='discussions-op-text'>

<sup>Originally posted by villeneuve May 17, 2023</sup>
Hi!
With latest 1.20 (also tested with today nightly build) pressing Ctrl-C in WebREPL on a pico W that is running a program has no effect.
Ctrl-C works in normal REPL but not in WebREPL
On ESP8266 and ESP32 (latest 1.20 as well) it works as expected in WebREPL
And also (on the pico W) webrepl_setup exits on error because there is no boot.py file.
We can just create an empty one and it works but this isn't obvious for beginers (boot.py exists on ESP* ports)
</div>

CANDIDATE · 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.

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