MQTT Events to Azure IoT Hub #765
-
I am experiencing an issue slightly similar to that described in https://github.com/orgs/AxisCommunications/discussions/734 , but for a different product and for sending telemetry to an Azure IoT Hub. I have the following setup: |
Beta Was this translation helpful? Give feedback.
Replies: 2 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 @FLSandberg , 1. Get the correct topicFilter using AXIS Metadata Monitor for ALPV event metadata.Use this Test button if you don't have the camera on the road with the vehicle 😉2. Start MQTT Events for ALPV using the the MQTT Event Bridge APIs:URLhttp://{{device}}/axis-cgi/mqtt/event.cgi Body:{
"apiVersion": "1.0",
"context": "some context",
"method": "configureEventPublication",
"params": {
"eventFilterList": [
{
"topicFilter": "tnsaxis:CameraApplicationPlatform/ALPV.AllPlates"
}
]
}
} Response:{
"apiVersion": "1.2",
"context": "some context",
"method": "configureEventPublication",
"data": {}
} Snapshot using Postman:3. Confirm the MQTT subscription4. Check the MQTT messages on the Azure IoT Hub: |
Beta Was this translation helpful? Give feedback.
Hi @FLSandberg ,
As per my understanding, you may be missing the MQTT Event Bridge part. I am adding the steps that I followed to test the MQTT Events to Azure IoT Hub from AXIS License Plate Verifier ACAP:
1. Get the correct topicFilter using AXIS Metadata Monitor for ALPV event metadata.
Use this Test button if you don't have the camera on the road with the vehicle 😉
2. Start MQTT Events for ALPV using the the MQTT Event Bridge APIs:
URL
Body: