Parsing MQTT Payload for numeric data value
-
I'm having a hard time retrieving data from a MQTT JSON payload and placing the information in a datapoint. I am able to connect to the MQTT broker and subscribe to the Topic. The playload data is coming through correctly, but I can't figure out the nomenclature to get the information into the datapoint. Any help would be greatly appreciated.
-
@Curtis the input is in JSON Pointer notation. Slashes are the separator, you can learn more here: https://www.baeldung.com/json-pointer or the full monty here: https://www.rfc-editor.org/rfc/rfc6901.html (with some decent examples)
-
Your value JSON pointer would look like this:
/values/0/v
-
@terrypacker Thanks. That worked.