Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Text script or JSON creator
#2
Hi,

use $C1_Vx.value instead of $C1_Vx1
like this:

{
"CID":
{
"deviceID":"SN23030001"
},
"measurments":
{
"weight":{"value":$C1_V1.value,"valid":$C1_V5.value},
"tempe1":{"value":23,"valid":true},
"tempe2":{"value":14,"valid":true}
},
"status":
{
"power":
{
"Battery":$C1_V2.value,
"mains":$C1_V4.value,
"devicePower":$C1_V3.value},
"health":
{
"code":0
}}}


I have checked. It works fine!
Reply


Messages In This Thread
Text script or JSON creator - by samxhot - 04-05-2023, 04:42 PM
RE: Text script or JSON creator - by iliaslamprou - 04-05-2023, 07:45 PM
RE: Text script or JSON creator - by samxhot - 04-06-2023, 06:17 AM
RE: Text script or JSON creator - by iliaslamprou - 04-06-2023, 09:44 PM
RE: Text script or JSON creator - by samxhot - 04-08-2023, 11:53 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)