mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 04:30:24 +01:00
docs/esp8266/tutorial: Close socket after reading page content.
This commit is contained in:
@@ -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::
|
||||
|
||||
Reference in New Issue
Block a user