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

This commit is contained in:
Max 2017-01-03 19:20:23 +01:00 committed by Damien George
parent 3c84197f17
commit e1f495a4bd
1 changed files with 1 additions and 0 deletions

View File

@ -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::