File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -71,21 +71,21 @@ It works! Neat! The REPL (Read-Evaluate-Print-Loop) is really nice to quickly de
71
71
I also tried connecting to WiFi and using the Web-REPL, so you can execute Python commands over the air! With...
72
72
73
73
``` 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
83
83
```
84
84
85
85
Then you can configure ` webrepl ` with:
86
86
87
87
``` bash
88
- import webrepl_setup
88
+ >>> import webrepl_setup
89
89
```
90
90
91
91
…and it will print out an IP that you can connect to and use the REPL from your browser! Very nice.
You can’t perform that action at this time.
0 commit comments