← index #4196Issue #2432
Off-topic · high · value 0.325
QUERY · ISSUE

BUG -- initial prompt on WebREPL connect is always ">>> ", even for paste (and raw) mode

openby Hermann-SWopened 2018-09-28updated 2018-09-28

If bringing MicroPython into paste mode and disconnecting then, initial prompt on next WebREPL connect is wrong. The prompt is ">>> " although MicroPython is in paste mode as can be seen in screenshot. Initial prompt on connect is wrong as well if the module gets into raw mode (eg. by screen session). Initial prompt on WebREPL connect then is ">>> " as well.

Since MicroPython should know its mode on connect, it should present the correct initial prompt:
<img src="https://stamm-wilbrandt.de/en/forum/webrepl.initial_prompt.wrong.png"/>

CANDIDATE · ISSUE

WebREPL is turned off by default

closedby iBobikopened 2016-09-18updated 2016-10-18
port-esp8266

In docs there is assumed WebREPL on ESP8266 is turned on by default, just connect to it.

Once you are on the same network as the ESP8266 you click the “Connect” button (if you are connecting via a router then you may need to change the IP address, by default the IP address is correct when connected to the ESP8266’s access point). If the connection succeeds then you should see a welcome message.

But in boot.py it is commented out by default:

# This file is executed on every boot (including wake-boot from deepsleep)
#import esp
#esp.osdebug(None)
import gc
#import webrepl
#web
repl.start()
gc.collect()

So in reality we have to first turn on WebREPL by serial REPL, then we con connect to it by network:

import webrepl
webrepl.start()

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