Skip to content

Commit e0798d8

Browse files
committed
updated testing micropython on an ESP8266 D1 Mini.md
1 parent 602be9e commit e0798d8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

notes/testing micropython on an ESP8266 D1 Mini.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,21 +71,21 @@ It works! Neat! The REPL (Read-Evaluate-Print-Loop) is really nice to quickly de
7171
I also tried connecting to WiFi and using the Web-REPL, so you can execute Python commands over the air! With...
7272

7373
```bash
74-
import network
75-
wlan = network.WLAN(network.WLAN.IF_STA)
76-
wlan.active(True)
77-
wlan.scan()
78-
wlan.isconnected()
79-
wlan.connect("ssid", "key")
80-
# wait a bit
81-
wlan.isconnected()
82-
# or use function from https://docs.micropython.org/en/latest/esp8266/quickref.html#networking
74+
>>> import network
75+
>>> wlan = network.WLAN(network.WLAN.IF_STA)
76+
>>> wlan.active(True)
77+
>>> wlan.scan()
78+
>>> wlan.isconnected()
79+
>>> wlan.connect("ssid", "key")
80+
>>> # wait a bit
81+
>>> wlan.isconnected()
82+
>>> # or use function from https://docs.micropython.org/en/latest/esp8266/quickref.html#networking
8383
```
8484

8585
Then you can configure `webrepl` with:
8686

8787
```bash
88-
import webrepl_setup
88+
>>> import webrepl_setup
8989
```
9090

9191
…and it will print out an IP that you can connect to and use the REPL from your browser! Very nice.

0 commit comments

Comments
 (0)