Apply processing logic and send results to Cloud
With Crosser you can not only connect different devices, equipment, applications and services to the UNS, you can also create flows that process the data from simple aggregations up to running AI models within a flow.
Below's example shows how to subscribe to the temperature of robots, calculates the average over a time window of 10 seconds and sends the result to Azure Event Hubs.
1. Use wildcards in the MQTT topic to subscribe to topics of interest stockholm/packaging/+/+/Robot1/temperature.
2. In the aggregate module set the source property to ‘topic’ to be able to calculate the aggregated values for every topic/tag.
3. Publish the data to the external service that requires it. In this case we published the data to the Azure Event Hubs from where it is used by a dashboard.
Note. The aggregate module was just used as an example. Instead of this you can also bring down extended logic in the form of Python code or even a trained AI model which processes the data right next to the UNS.