MQTT Collector
The current MQTT collector is based in Sparkplug B specification, wich is not easy to implement in a PLC environment.
Please, in the near future, consider a simple MQTT payload like this:
Payload = {
"timestamp": 123456789,
"metrics":[
{
"name": "Variable1",
"value": 1234,
"type": "Int32"
},
"name": "Variable2",
"value": 5678,
"type": "Int32"
}
]
}
Whit this flexibility we will be able to integrate more IoT metrics to the Canary Historian.
Best regards.
4 replies
-
Thank you for your suggestion Juan
-
Hi josorio ,
Starting in v22.0, the MQTT Collector will be able to consume a JSON payload. See our Roadmap for more details.
-
Hi Juan, in addition to support for the simple JSON payload, in version 23.0.0 there is now the capability of configuring a javascript function to parse and transform many different JSON structures and log them into the historian. To summarize, you build a javascript function to parse the JSON message and then map it into a pre-defined structure that the MQTT collector can consume and log into the historian. With this you have complete control over the tag names and metrics that are logged. For additional configuration details see this: https://helpcenter.canarylabs.com/t/h7hvlzk/mqtt-collector-overview-version-23
Content aside
Print this page- Status Released
-
1
Votes
- 8 mths agoLast active
- 4Replies
- 259Views
-
5
Following