1

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

null
    • Helping you release your data rockstar!
    • Jeff_Knepper
    • 3 yrs ago
    • Reported - view

    Thank you for your suggestion Juan

    • smason
    • 2 yrs ago
    • Reported - view

    Hi josorio ,

    Starting in v22.0, the MQTT Collector will be able to consume a JSON payload. See our Roadmap for more details.

    • Senior Software Engineer
    • Josh_Wolf
    • 1 yr ago
    • Reported - view

    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 

      • jonathan_taimla
      • 9 mths ago
      • Reported - view

      Josh Wolf Would it be possible to add support for storing metadata in the MQTT 5.0 user properties rather than the payload? 

Content aside

print this pagePrint this page
  • Status Released
  • 1 Votes
  • 9 mths agoLast active
  • 4Replies
  • 260Views
  • 5 Following