Skip to content
Snippets Groups Projects
Commit 9b4502b7 authored by Damien George's avatar Damien George
Browse files

docs/esp8266/tutorial: Fix typo in do_connect() network example.

Fixes issue #2065.
parent ce2d34d7
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ connect to your WiFi network:: ...@@ -62,7 +62,7 @@ connect to your WiFi network::
print('connecting to network...') print('connecting to network...')
sta_if.active(True) sta_if.active(True)
sta_if.connect('<essid>', '<password>') sta_if.connect('<essid>', '<password>')
while not network.isconnected(): while not sta_if.isconnected():
pass pass
print('network config:', sta_if.ifconfig()) print('network config:', sta_if.ifconfig())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment