04-05-2023, 04:42 PM
Hello to all. New to Virtuino IoT.
I have a question on how to use the test script or Json creator widget.
My JSON text is the following:
{
"CID":
{
"deviceID":"SN23030001"
},
"measurments":
{
"weight":{"value":$C1_V1,"valid":$C1_V5},
"tempe1":{"value":23,"valid":true},
"tempe2":{"value":14,"valid":true}
},
"status":
{
"power":
{
"Battery":$C1_V2,
"mains":$C1_V4,
"devicePower":$C1_V3},
"health":
{
"code":0
}}}
I made it as the examples says so.
I selected the OUTPUT variable to be one of my MQTT connection (e.g V10)
and now I need to create / activate this function of JSON->Variable
There is no input or enable variable to do so.
How can I have the final JSON text to my V10 variable to send it via MQTT?
Thank you.
I have a question on how to use the test script or Json creator widget.
My JSON text is the following:
{
"CID":
{
"deviceID":"SN23030001"
},
"measurments":
{
"weight":{"value":$C1_V1,"valid":$C1_V5},
"tempe1":{"value":23,"valid":true},
"tempe2":{"value":14,"valid":true}
},
"status":
{
"power":
{
"Battery":$C1_V2,
"mains":$C1_V4,
"devicePower":$C1_V3},
"health":
{
"code":0
}}}
I made it as the examples says so.
I selected the OUTPUT variable to be one of my MQTT connection (e.g V10)
and now I need to create / activate this function of JSON->Variable
There is no input or enable variable to do so.
How can I have the final JSON text to my V10 variable to send it via MQTT?
Thank you.