Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/oauth2_simpletest_esp32spi.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import busio
from digitalio import DigitalInOut
import adafruit_connection_manager
import adafruit_esp32spi.adafruit_esp32spi_socket as pool
from adafruit_esp32spi import adafruit_esp32spi

import adafruit_requests
Expand Down Expand Up @@ -38,7 +37,8 @@
print("Connected to", str(esp.ssid, "utf-8"), "\tRSSI:", esp.rssi)

# Initialize a requests session
ssl_context = adafruit_connection_manager.create_fake_ssl_context(pool, esp)
pool = adafruit_connection_manager.get_radio_socketpool(esp)
ssl_context = adafruit_connection_manager.get_radio_ssl_context(esp)
requests = adafruit_requests.Session(pool, ssl_context)

# Set scope(s) of access required by the API you're using
Expand Down