diff --git a/content/tutorials/networkprotocols/https.md b/content/tutorials/networkprotocols/https.md index 8928ad77..8f0b2f28 100644 --- a/content/tutorials/networkprotocols/https.md +++ b/content/tutorials/networkprotocols/https.md @@ -23,7 +23,7 @@ while not wlan.isconnected(): print("connected") print(wlan.ifconfig()) -s = socket.socket(usocket.AF_INET, usocket.SOCK_STREAM) +s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) ss = ssl.wrap_socket(s) #adds TLS ss.connect(socket.getaddrinfo('pycom.io', 443)[0][-1]) rec = ss.recv(4096)