0
MQTT Collector storing all tags as strings
Forum / Questions & Answers
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
-
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.
-
Thanks. I was able to use parseFloat(message) to manually convert it.