-
Notifications
You must be signed in to change notification settings - Fork 13
IOT Hub requires TLS #60
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
Oh, and I was using a QtPy-S3 as my test device. |
@geudrik - Did you find an alternative? |
I did not. I haven't had much time lately to keep messing around either :/ |
Sharing this in case it's helpful. It seems related since IoT Central leverages IoT Hub. Last weekend I was trying to build an example that uses IoT Central and the device would not register. I was able to get the debug going and noticed it's not using SSL by default. I was able to get that turned up and get the device to register. I did it by changing the default in the adafruit_minimqtt. This thread has all of the details and debugs: https://forums.adafruit.com/viewtopic.php?p=980013#p980013 If can help get this fixed in anyway so the examples provided on the website work please or in testing fixes I'd be happy to do that. In the meantime I'll be tinkering with sensors and dashboards now that I have it reporting to up to Azure. |
I switched to micropython and used the Microsoft version, which unfortunately uses upip (deprecated and doesn’t work on new micropython releases) to download its dependencies. I swapped this to mip (new package manager) and it worked. (alternatively just manually install it’s dependencies or use a micropython version that supports upip). Will post the code when I get home in a few days, but my Pico W has been reporting happily to azure for at least 24 hours! |
I too ran into issues with connectivity following the tutorials and the provided examples in the readme and simple test . Similar to the blog post shared above, ensuring is_ssl is true when interfacing with MQTT results in the device connecting. |
IOT Hub requires TLS for MQTT connections now. Changing the port to 443 and adding
is_ssl=True
on the MQTT client init iniot_mqtt.py
doesn't work though. After that change, I get the followingI'm not familiar enough with MQTT to understand what this is actually telling me. But ultimately, this library doesn't currently work because of the TLS requirement and it's not supported (at all) without making code changes in the lib.
The code I'm using for testing is the default example code in this repo (example code), with the added addition of an adafruit_logger() instance to the IOTHubDevice init
The text was updated successfully, but these errors were encountered: