Pico W : WebREPL : Ctrl-C not working
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>
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.