Appendix A. MQTT JSON Format of the UA-5200 Series
MQTT JSON Example & Format Descriptions:
{
"Variable" : [ {
"Name" : "Bool_R[0]",
"Attribute" : "R",
"Datatype" : "Bool",
"Value" : 0,
"Quality" : "Uncertain"
}, {
"Name" : "Short_R[0]",
"Attribute" : "R",
"Datatype" : "Int16",
"Value" : 0,
"Quality" : "Uncertain"
}, {
"Name" : "Short_R[1]",
"Attribute" : "R",
"Datatype" : "Int16",
"Value" : 0,
"Quality" : "Uncertain"
}, {
"Name" : "Short_R[2]",
"Attribute" : "R",
"Datatype" : "Int16",
"Value" : 0,
"Quality" : "Uncertain"
}, {
"Name" : "Short_RW[2]",
"Attribute" : "RW",
"Datatype" : "Int16",
"Value" : 0,
"Quality" : "Uncertain"
} ]
}
UA-5200 Series User Manual V.3.0.0
Name
Variable
The array name of JSON.
Its structure includes several
member data as below.
Name
The member name of the array
element
Attribute
The member attribute of the array
element:
"R" : can read
"W" : can write
"RW" : can read and write
Datatype
The member's data type of the array
element:
"Bool"
"Int8"
"UInt8"
"UInt16"
"Int16"
"UInt32"
"Int32"
"UInt64"
"Int64"
"Float"
"Double"
"String"
Value
The member's current value of the
array element
Quality
The member's current status of the
array element:
"Uncertain"
"Good"
"Bad"
78
ICP DAS
Descriptions