Skip to content

Commit

Permalink
Merge pull request #26 from justmobilize/fix-get-radio-ssl-context
Browse files Browse the repository at this point in the history
Fix get_radio_ssl_context
  • Loading branch information
dhalbert authored Mar 1, 2024
2 parents 052b539 + 21964b9 commit f6cd827
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/aws_iot_shadows.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import adafruit_connection_manager
from adafruit_esp32spi import adafruit_esp32spi
from adafruit_esp32spi import adafruit_esp32spi_wifimanager
import adafruit_esp32spi.adafruit_esp32spi_socket as pool
import adafruit_minimqtt.adafruit_minimqtt as MQTT
from adafruit_aws_iot import MQTT_CLIENT

Expand Down Expand Up @@ -135,7 +134,8 @@ def message(client, topic, msg):
wifi.connect()
print("Connected!")

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)

# Set up a new MiniMQTT Client
client = MQTT.MQTT(
Expand Down
4 changes: 2 additions & 2 deletions examples/aws_iot_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import adafruit_connection_manager
from adafruit_esp32spi import adafruit_esp32spi
from adafruit_esp32spi import adafruit_esp32spi_wifimanager
import adafruit_esp32spi.adafruit_esp32spi_socket as pool
import adafruit_minimqtt.adafruit_minimqtt as MQTT
from adafruit_aws_iot import MQTT_CLIENT

Expand Down Expand Up @@ -132,7 +131,8 @@ def message(client, topic, msg):
wifi.connect()
print("Connected!")

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)

# Set up a new MiniMQTT Client
client = MQTT.MQTT(
Expand Down

0 comments on commit f6cd827

Please sign in to comment.