0

MQTT Collector storing all tags as strings

I'm using the MQTT collector with the JSON Parser. The problem is it's storing all tags as strings. The documentation (https://helpcenter.canarylabs.com/t/h7hvlzk/mqtt-collector-overview-version-23) doesn't seem to mention how to set the data type value.

2 replies

null
    • smason
    • 9 mths ago
    • Reported - view

    Hi jonathan_taimla ,

    The historian determines the datatype based on the value. If the value is in quotes it assumes it is a string value.

    • jonathan_taimla
    • 9 mths ago
    • Reported - view

    Thanks. I was able to use parseFloat(message) to manually convert it.

Content aside

print this pagePrint this page
  • Status Answered
  • 9 mths agoLast active
  • 2Replies
  • 45Views
  • 2 Following