From daecc934ffb879f184a30135234a95584984b563 Mon Sep 17 00:00:00 2001 From: Meric SARIISIK Date: Thu, 2 Dec 2021 11:29:37 +0100 Subject: [PATCH] fix typo in https example --- content/tutorials/networkprotocols/https.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)