You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We are using the OPC Publisher to collect information from devices and would like to route the information to different IoT Hub endpoints based on the payload we receive from the device. However, we noticed that the payload is Base64 encoded and the IoT Routing queries are not applied on properties in the body as described in the following article.
This is related to the content type being set != application/json. A quick fix could be to set it to application/json, but this a) could break other applications and b) will be broken in our next publisher release.
Since in future version of publisher as per customer ask we will be sending OPC UA binary (or OPC UA Json) and "Pub/Sub compliant" network messages from publisher, and both are not routable, we will anyway need an extra conversion module at edge side to convert to some simplistic, routable message format for this scenario.
As such I am tracking this item as feature request to add such sample module, instead of closing.
Describe the bug
We are using the OPC Publisher to collect information from devices and would like to route the information to different IoT Hub endpoints based on the payload we receive from the device. However, we noticed that the payload is Base64 encoded and the IoT Routing queries are not applied on properties in the body as described in the following article.
https://azure.microsoft.com/en-us/blog/iot-hub-message-routing-now-with-routing-on-message-body/
To Reproduce
Here is the message received from the OPC Publisher:
The decoded body is:
The following messge routing query does not work in IoT Hub:
Messages are not routed based on the condition above.
Expected behavior
Ability to route based on the $body properties.
The text was updated successfully, but these errors were encountered: