JSON
52
Doc.Id. HMSI-27-212
Anybus CompactCom 40 EtherNet/IP
Doc.Rev. 1.5
data.json
GET adi/data.json?offset=<offset>&count=<count>[&callback=<function>].
This object call fetches values for up to <count> ADIs, starting from <offset> in a list sorted by ADI
order number. The values may change at any time during runtime. Optionally, a callback may be passed
to the GET-request for JSONP output.
JSON object layout:
[
"FF",
"A201",
"01FAC105"
]
metadata.json
GET adi/metadata.json?offset=<offset>&count=<count>[&callback=<function>].
This object call fetches metadata for up to <count> ADIs, starting from <offset> in a list sorted by
ADI order number. This data is static during runtime. Optionally, a callback may be passed to the GET-
request for JSONP output.
JSON object layout:
[
{
"instance": 1,
"name": "Temperature threshold",
"numelements": 1,
"datatype": 0,
"min": "00",
"max": "FF",
"access": 0x03
}
{
nine more...
}
]
Name
Data Type
Note
instance
Number
-
name
String
May be NULL if no name is present.
numelements
Number
-
datatype
Number
-
min
String
Minimum value. May be NULL if no minimum value is
present.
max
String
Maximum value. May be NULL of no maximum value is
present.
access
Number
Bit 0: Read access
Bit 1: Write access