Real Time Automation, Inc.
56
1-800-249-1612
Expanded JSON Input
The following example is slightly more complicated and writes one data point to one device
and two
data points
to a different device. Expanding on this pattern, it is possible to write to every writable data
point of every device configured in the gateway with a single JSON write.
Special Note for JSON Strings
There is an additional consideration when writing STRING data types. The gateway recognizes and will
convert the standard JSON escape sequences to their ASCII equivalents when passing the STRING value
to the mating protocol. The reverse is also true when reading STRING data from the mating protocol.
The exception to this rule is the “
\
u” Unicode code
-point escape sequence, which will be passed as-is.
[
{
"DeviceName": "Breaker",
"Temperature": 100
},
{
"DeviceName": "Drive",
"Temperature_Cutoff": 32,
"Torque": 15.2
}
]