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.

2replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • 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.

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

    Like
print this pagePrint this page
Like Follow
  • Status Answered
  • 2 mths agoLast active
  • 2Replies
  • 28Views
  • 2 Following