diff options
author | Paulus Schoutsen <paulus@paulusschoutsen.nl> | 2016-05-07 23:24:24 -0700 |
---|---|---|
committer | Paulus Schoutsen <paulus@paulusschoutsen.nl> | 2016-05-07 23:24:24 -0700 |
commit | c156e89379b8e50f5237f55fec7be1dbad57abc3 (patch) | |
tree | bf282ddf11f19039a64050590300beb369b8c904 /docs/esp8266/tutorial | |
parent | 9e47c145c705351748399eb64a7686efc9e24b0a (diff) | |
download | micropython-c156e89379b8e50f5237f55fec7be1dbad57abc3.tar.gz micropython-c156e89379b8e50f5237f55fec7be1dbad57abc3.zip |
Fix ESP8266 Network tutorial
The socket should either connect to `addr` or `addr_info[0][-1]`. Not to `addr[0][-1]`.
Diffstat (limited to 'docs/esp8266/tutorial')
-rw-r--r-- | docs/esp8266/tutorial/network_tcp.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/esp8266/tutorial/network_tcp.rst b/docs/esp8266/tutorial/network_tcp.rst index 0a1cca4457..80a494721d 100644 --- a/docs/esp8266/tutorial/network_tcp.rst +++ b/docs/esp8266/tutorial/network_tcp.rst @@ -36,7 +36,7 @@ information they hold. Using the IP address we can make a socket and connect to the server:: >>> s = socket.socket() - >>> s.connect(addr[0][-1]) + >>> s.connect(addr) Now that we are connected we can download and display the data:: |