Skip to content
Snippets Groups Projects
Commit c156e893 authored by Paulus Schoutsen's avatar Paulus Schoutsen
Browse files

Fix ESP8266 Network tutorial

The socket should either connect to `addr` or `addr_info[0][-1]`. Not to `addr[0][-1]`.
parent 9e47c145
Branches
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ information they hold. ...@@ -36,7 +36,7 @@ information they hold.
Using the IP address we can make a socket and connect to the server:: Using the IP address we can make a socket and connect to the server::
>>> s = socket.socket() >>> s = socket.socket()
>>> s.connect(addr[0][-1]) >>> s.connect(addr)
Now that we are connected we can download and display the data:: Now that we are connected we can download and display the data::
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment