diff --git a/examples/minimqtt_adafruitio_cellular.py b/examples/minimqtt_adafruitio_cellular.py index b6941d97..724f4f06 100755 --- a/examples/minimqtt_adafruitio_cellular.py +++ b/examples/minimqtt_adafruitio_cellular.py @@ -6,7 +6,7 @@ import adafruit_fona.adafruit_fona_network as network import adafruit_fona.adafruit_fona_socket as socket -import adafruit_minimqtt as MQTT +import adafruit_minimqtt.adafruit_minimqtt as MQTT # Get Adafruit IO details and more from a secrets.py file try: diff --git a/examples/minimqtt_adafruitio_eth.py b/examples/minimqtt_adafruitio_eth.py index 53e3b126..9db6cf88 100755 --- a/examples/minimqtt_adafruitio_eth.py +++ b/examples/minimqtt_adafruitio_eth.py @@ -9,7 +9,7 @@ from adafruit_wiznet5k.adafruit_wiznet5k import WIZNET5K import adafruit_wiznet5k.adafruit_wiznet5k_socket as socket -import adafruit_minimqtt as MQTT +import adafruit_minimqtt.adafruit_minimqtt as MQTT # Get Adafruit IO details and more from a secrets.py file try: diff --git a/examples/minimqtt_adafruitio_wifi.py b/examples/minimqtt_adafruitio_wifi.py index 07871d9e..9a22616c 100644 --- a/examples/minimqtt_adafruitio_wifi.py +++ b/examples/minimqtt_adafruitio_wifi.py @@ -10,7 +10,7 @@ from adafruit_esp32spi import adafruit_esp32spi_wifimanager import adafruit_esp32spi.adafruit_esp32spi_socket as socket -import adafruit_minimqtt as MQTT +import adafruit_minimqtt.adafruit_minimqtt as MQTT ### WiFi ### diff --git a/examples/minimqtt_certificate.py b/examples/minimqtt_certificate.py index 758fb761..b2155ae7 100644 --- a/examples/minimqtt_certificate.py +++ b/examples/minimqtt_certificate.py @@ -6,7 +6,7 @@ from adafruit_esp32spi import adafruit_esp32spi_wifimanager import adafruit_esp32spi.adafruit_esp32spi_socket as socket -import adafruit_minimqtt as MQTT +import adafruit_minimqtt.adafruit_minimqtt as MQTT ### WiFi ### diff --git a/examples/minimqtt_pub_sub_blocking.py b/examples/minimqtt_pub_sub_blocking.py index f088da4f..8b1c43e5 100644 --- a/examples/minimqtt_pub_sub_blocking.py +++ b/examples/minimqtt_pub_sub_blocking.py @@ -8,7 +8,8 @@ from adafruit_esp32spi import adafruit_esp32spi from adafruit_esp32spi import adafruit_esp32spi_wifimanager import adafruit_esp32spi.adafruit_esp32spi_socket as socket -import adafruit_minimqtt as MQTT + +import adafruit_minimqtt.adafruit_minimqtt as MQTT ### WiFi ### diff --git a/examples/minimqtt_pub_sub_blocking_topic_callbacks.py b/examples/minimqtt_pub_sub_blocking_topic_callbacks.py index 06709f5a..8b2ebc3e 100644 --- a/examples/minimqtt_pub_sub_blocking_topic_callbacks.py +++ b/examples/minimqtt_pub_sub_blocking_topic_callbacks.py @@ -6,6 +6,7 @@ from adafruit_esp32spi import adafruit_esp32spi from adafruit_esp32spi import adafruit_esp32spi_wifimanager import adafruit_esp32spi.adafruit_esp32spi_socket as socket + import adafruit_minimqtt.adafruit_minimqtt as MQTT ### WiFi ### diff --git a/examples/minimqtt_pub_sub_nonblocking.py b/examples/minimqtt_pub_sub_nonblocking.py index 5c1ce04a..6d8d64d5 100644 --- a/examples/minimqtt_pub_sub_nonblocking.py +++ b/examples/minimqtt_pub_sub_nonblocking.py @@ -6,7 +6,8 @@ from adafruit_esp32spi import adafruit_esp32spi from adafruit_esp32spi import adafruit_esp32spi_wifimanager import adafruit_esp32spi.adafruit_esp32spi_socket as socket -import adafruit_minimqtt as MQTT + +import adafruit_minimqtt.adafruit_minimqtt as MQTT ### WiFi ### diff --git a/examples/minimqtt_pub_sub_pyportal.py b/examples/minimqtt_pub_sub_pyportal.py index 3fd3bbce..a3f9a60d 100644 --- a/examples/minimqtt_pub_sub_pyportal.py +++ b/examples/minimqtt_pub_sub_pyportal.py @@ -1,9 +1,10 @@ import time from adafruit_esp32spi import adafruit_esp32spi_wifimanager import adafruit_esp32spi.adafruit_esp32spi_socket as socket -import adafruit_minimqtt as MQTT import adafruit_pyportal +import adafruit_minimqtt.adafruit_minimqtt as MQTT + pyportal = adafruit_pyportal.PyPortal() ### WiFi ### diff --git a/examples/minimqtt_simpletest.py b/examples/minimqtt_simpletest.py index c07f51a1..2c08b99f 100644 --- a/examples/minimqtt_simpletest.py +++ b/examples/minimqtt_simpletest.py @@ -6,7 +6,7 @@ from adafruit_esp32spi import adafruit_esp32spi_wifimanager import adafruit_esp32spi.adafruit_esp32spi_socket as socket -import adafruit_minimqtt as MQTT +import adafruit_minimqtt.adafruit_minimqtt as MQTT ### WiFi ### diff --git a/examples/minimqtt_simpletest_cellular.py b/examples/minimqtt_simpletest_cellular.py index bdecd6fe..d85bb561 100644 --- a/examples/minimqtt_simpletest_cellular.py +++ b/examples/minimqtt_simpletest_cellular.py @@ -6,7 +6,7 @@ import adafruit_fona.adafruit_fona_network as network import adafruit_fona.adafruit_fona_socket as socket -import adafruit_minimqtt as MQTT +import adafruit_minimqtt.adafruit_minimqtt as MQTT ### Cellular ### diff --git a/examples/minimqtt_simpletest_eth.py b/examples/minimqtt_simpletest_eth.py index 2d1f5d90..55a649db 100644 --- a/examples/minimqtt_simpletest_eth.py +++ b/examples/minimqtt_simpletest_eth.py @@ -4,7 +4,7 @@ from adafruit_wiznet5k.adafruit_wiznet5k import WIZNET5K import adafruit_wiznet5k.adafruit_wiznet5k_socket as socket -import adafruit_minimqtt as MQTT +import adafruit_minimqtt.adafruit_minimqtt as MQTT # Get MQTT details and more from a secrets.py file try: