@@ -41,6 +41,18 @@ For your convenience, WebREPL client is hosted at
4141locally from the the GitHub repository
4242`<https://github.com/micropython/webrepl >`__ .
4343
44+ Before connecting to WebREPL, you should set a password and enable it via
45+ a normal serial connection. Initial versions of MicroPython for ESP8266
46+ came with WebREPL automatically enabled on the boot and with the
47+ ability to set a password via WiFi on the first connection, but as WebREPL
48+ was becoming more widely known and popular, the initial setup has switched
49+ to a wired connection for improved security::
50+
51+ import webrepl_setup
52+
53+ Follow the on-screen instructions and prompts. To make any changes active,
54+ you will need to reboot your device.
55+
4456To use WebREPL connect your computer to the ESP8266's access point
4557(MicroPython-xxxxxx, see the previous section about this). If you have
4658already reconfigured your ESP8266 to connect to a router then you can
@@ -49,19 +61,11 @@ skip this part.
4961Once you are on the same network as the ESP8266 you click the "Connect" button
5062(if you are connecting via a router then you may need to change the IP address,
5163by default the IP address is correct when connected to the ESP8266's access
52- point). If the connection succeeds then you should see a welcome message.
53-
54- On the first connection you need to set a password. Make sure that the
55- terminal widget is selected by clicking on it, and then follow prompts to
56- type in your password twice (they should match each other). Then ESP8266
57- will then reboot with the password applied (the WiFi will go down but come
58- back up again). Note that some modules may have troubles rebooting
59- automatically and need reset button press or power cycle (do this if
60- you don't see ESP8266 access point appearing in a minute or so).
61-
62- You should then click the "Connect" button again, and enter your password
63- to connect. If you type in the correct password you should get a prompt
64- looking like ``>>> ``. You can now start typing Python commands!
64+ point). If the connection succeeds then you should see a password prompt.
65+
66+ Once you type the password configured at the setup step above, press Enter once
67+ more and you should get a prompt looking like ``>>> ``. You can now start
68+ typing Python commands!
6569
6670Using the REPL
6771--------------
0 commit comments