MQTT to Azure IoT Hub #734
-
My goal is to be able to send axis metadata track ended events to Azure IoT Hub. My setup is: I have successfully enabled the Feature flag and can receive the track ended events via MQTT if i have a local broker. It also shows in the camera settings: I have then followed the tutorial here: https://developer.axis.com/analytics/how-to-guides/send-telemetry-to-azure-iot-hub I am able to get the Status to show connected and on Azure it shows 1 IoT device with the ID connected but constantly the logs on the device show disconnect events and no messages send.
I then tried it on a different device in a different network with the same firmware and I get the same Lost connection messages. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
This automatically generated reply acts as a friendly reminder. Answers to your questions will most often come from the community, from developers like yourself. You will, from time to time, find that Axis employees answers some of the questions, but this is not a guarantee. Think of the discussion forum as a complement to other support channels, not a replacement to any of them. If your question remains unanswered for a period of time, please revisit it to see whether it can be improved by following the guidelines listed in Axis support guidelines. |
Beta Was this translation helpful? Give feedback.
-
Hi @garaujo23 , The logs snapshot for your reference: Let me check if I can find someone who tested MQTT with Azure. |
Beta Was this translation helpful? Give feedback.
-
Hi @garaujo23 , Finally, you need to change the topic in the camera to follow Azure's topic structure: devices/device01/messages/events/ The Axis team behind the guide will make sure to update the guide as well. Let me know if it is working for you. |
Beta Was this translation helpful? Give feedback.
-
Thanks @vivekatoffice, confirmed it works on my end as well |
Beta Was this translation helpful? Give feedback.
Hi @garaujo23 ,
Just to update the guide is updated now:
Send telemetry to Azure IoT Hub(Last updated on Aug 30, 2024)
Note
The CA certificate has been updated since Microsoft changed it on Azure IOT Hub side.
Now you should use the “DigiCert Global Root G2” instead of the “Baltimore cyber” and you can tick the “Validate server certificate”.