Commit e1f495a4 authored by Max's avatar Max Committed by Damien George

docs/esp8266/tutorial: Close socket after reading page content.

parent 3c84197f
......@@ -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::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment