BUG -- initial prompt on WebREPL connect is always ">>> ", even for paste (and raw) mode
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"/>
WebREPL is turned off by default
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()