Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get values from a Json message
#2
Hi,
I am sorry, I don't have a tutorial yet.
It is very easy to do it.

I have uploaded your json text to the hiveMQ broker to the topic: virtuino_test
1. Create a new project
2. Add the default Virtuino MQTT connection to the broker HiveMQ
3. Enter the sub topic: virtuino_test
4. Go to the broker variables. Select the variable V0. Select as sub topic the "virtuino_test" topic
5. On the field "Value Json path" enter the follow path
results[0]/name

Insert a "Value display" to read the V0
Then connect andĀ check the results

The results[0] returns the first json item of the results array
The name returns the value of the jsonĀ field name
Reply


Messages In This Thread
RE: Settings for value readings - by iliaslamprou - 05-29-2022, 07:07 PM
RE: Settings for value readings - by Andrey_iv - 11-08-2022, 05:35 PM
RE: Settings for value readings - by iliaslamprou - 11-08-2022, 09:25 PM
RE: Settings for value readings - by Andrey_iv - 11-09-2022, 04:54 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)