-
Notifications
You must be signed in to change notification settings - Fork 13
Issues using on Arduino Nano RP2040 Connect #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Are you using one of the esp32spi examples within https://github.com/adafruit/Adafruit_CircuitPython_AzureIoT/tree/main/examples/azureiot_esp32spi? |
Hi, Error message: Looking at the CircuitPython download page for RP2040 (https://circuitpython.org/board/arduino_nano_rp2040_connect/), no SSL module is included in the build. Might this the root cause? Regards // Henrik |
I think this got modified by @jimbobbennett, We'd need to make a pull request to better handle this within
|
I'm running into this issue as well with a PyPortal after looking into this post on the forums: https://forums.adafruit.com/viewtopic.php?p=944133 I added a try/except in iot_mqtt.py and device_registration.py for importing SSL
And that at least gets past the SSL import error. However, in device_registration.py, during
And the PyPortal does attempt a connection with Azure. However, it seems to lock up at this step: `744.949: DEBUG - Receiving SUBSCRIBE 745.141: INFO - Received registration results on topic $dps/registrations/res/202/?$rid=2bz2xdk3z22&retry-after=3 - {"operationId":"5.7142ef3ec990ecb3.6d658d4c-d67a-4863-bb8b-7626a3e5459b","status":"assigning"} and does not retry after three seconds. When I do a `Traceback (most recent call last): Code done running.` It seems like maybe something is locking up in |
hihi @dhalbert - this is the issue I was talking about last night in the meeting |
Hi,
I´m trying to get this library to work on my Arduino RP2040 Nano Connect board.
Got Wifi working and connected
But when running this code:
from adafruit_azureiot import IoTHubDevice
device = IoTHubDevice(pool, esp, secrets["azure_device_connection_string"])
device.connect
I get this error:
code.py output:
Traceback (most recent call last):
File "code.py", line 76, in
File "adafruit_azureiot/init.py", line 35, in
File "adafruit_azureiot/iot_mqtt.py", line 17, in
ImportError: no module named 'ssl'
The azure_device_connection_string is copied from the IoT hub device page in Azure (and validated by using a VS Code extension to post message on the default service bus)
Using the latest CircuitPython library from https://github.com/adafruit/Adafruit_CircuitPython_Bundle/releases
I have also tried to use the Adafruit IO bundle and the MQTT client, but are unable to find any documentation how to use it against an Azure IoT Hub
Please advice
The text was updated successfully, but these errors were encountered: