-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Adding support for Azure IoT Hub #11906
Conversation
Simple testing documentation here: https://kevinsaye.wordpress.com/2021/04/26/using-tasmota-with-azure-iot-hub/ until I can contribute tot the Tasmota documentation site.
There is a free SKU for Azure IoT Hub, but if a tester wants access to an IoT Hub an you do not want to create an Azure subscription, message me directly and I will create an IoT Hub for you. |
Thanks. 👍 The link to the documentation you did is very complete and, if you want, it can be added to the tasmota´s docs. Just a detail, the CLIENT NAME must be unique for each device. That should be remarked as it is a very common mistake for new users. Also, the link to the pull request in your documentation is the old PR and not this one. |
#if defined(USE_MQTT_AZURE_IOT) | ||
// Azure IoT Hub currently does not support custom topics: https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support | ||
String realTopicString = "devices/" + String(SettingsText(SET_MQTT_CLIENT)); | ||
realTopicString += "/messages/devicebound/#"; | ||
MqttClient.subscribe(realTopicString.c_str()); | ||
#else //USE_MQTT_AZURE_IOT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with the code, however identation does not follow the Tasmota convention. The ifdefs start at the beginning of the line, and the code is identated as usual.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree. I will fix this once merged.
Add support for MQTT using Azure IoT Hub by Kevin Saye (#11906)
@arendst from a documentation perspective, I plan on writing a better document, once I get 2 more changes in. (Perhaps a discussion item) Can the area 'Smart Home Integrations' be renamed to something else? AWS and Azure (and other solutions) are not always Smart Home and have other uses. I have a customer using Tasmota for a people counter in a corporate environment -- which is why I submitted the Azure IoT Hub code. |
@ksaye regarding documentation pls contact the document site directly https://tasmota.github.io/docs/ @blakadder FYI |
Simple testing documentation here: https://kevinsaye.wordpress.com/2021/04/26/using-tasmota-with-azure-iot-hub/ until I can contribute tot the Tasmota documentation site.
Description:
Related issue (if applicable): fixes #
Checklist:
NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass