Skip to content

Commit 55506a7

Browse files
committed
Fix microcontroller example
1 parent 9245308 commit 55506a7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/pastebin_simpletest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
# SPDX-License-Identifier: Unlicense
44

55
import ssl
6-
import socket
6+
import wifi
7+
import socketpool
78
import adafruit_requests as requests
89
from adafruit_pastebin.pastebin import PasteBin, ExpirationSetting, PrivacySetting
910

@@ -15,7 +16,7 @@
1516

1617
wifi.radio.connect(secrets["ssid"], secrets["password"])
1718
pool = socketpool.SocketPool(wifi.radio)
18-
session = adafruit_requests.Session(pool, ssl.create_default_context())
19+
session = requests.Session(pool, ssl.create_default_context())
1920

2021
auth_key = secrets["auth_key"]
2122

0 commit comments

Comments
 (0)