Skip to content

Commit c156e89

Browse files
committed
Fix ESP8266 Network tutorial
The socket should either connect to `addr` or `addr_info[0][-1]`. Not to `addr[0][-1]`.
1 parent 9e47c14 commit c156e89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/esp8266/tutorial/network_tcp.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ information they hold.
3636
Using the IP address we can make a socket and connect to the server::
3737

3838
>>> s = socket.socket()
39-
>>> s.connect(addr[0][-1])
39+
>>> s.connect(addr)
4040

4141
Now that we are connected we can download and display the data::
4242

0 commit comments

Comments
 (0)