diff options
author | Max <dsiw@dsiw-it.de> | 2017-01-03 19:20:23 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-01-04 11:15:02 +1100 |
commit | e1f495a4bdde1f4e24cd45e36420c1c9868b1503 (patch) | |
tree | 6659c57e4d595b5a2be54ab447ae470f55adc498 /docs/esp8266/tutorial | |
parent | 3c84197f17d27a991f50cb6e5ed268edbc796991 (diff) | |
download | micropython-e1f495a4bdde1f4e24cd45e36420c1c9868b1503.tar.gz micropython-e1f495a4bdde1f4e24cd45e36420c1c9868b1503.zip |
docs/esp8266/tutorial: Close socket after reading page content.
Diffstat (limited to 'docs/esp8266/tutorial')
-rw-r--r-- | docs/esp8266/tutorial/network_tcp.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/esp8266/tutorial/network_tcp.rst b/docs/esp8266/tutorial/network_tcp.rst index 80a494721d..26a2f469ce 100644 --- a/docs/esp8266/tutorial/network_tcp.rst +++ b/docs/esp8266/tutorial/network_tcp.rst @@ -72,6 +72,7 @@ Let's define a function that can download and print a URL:: print(str(data, 'utf8'), end='') else: break + s.close() Make sure that you import the socket module before running this function. Then you can try:: |