![Anybus CompactCom 40 Common Ethernet Design Manual Download Page 49](http://html1.mh-extra.com/html/anybus/compactcom-40-common-ethernet/compactcom-40-common-ethernet_design-manual_2948756049.webp)
47 (104)
enum.json
GET adi/enum.json?inst=<instance>[&value=<element>][&callback=<function>].
This object call fetches enum strings for the instance <instance>. If an <element> is specified,
only the enum string for that value is returned. If no enum strings are available, an empty list is
returned. Optionally, a callback may be passed to the GET-request for JSONP output.
Name
Data Type
Note
string
String
-
value
Number
-
JSON object layout:
[
{
"string": "String for value 1",
......"value": 1
},
{
"string": "String for value 1",
......"value": 1
...},
...
]
update.json
POST adi/update.json - form data:
inst=<instance>&value=<data>[&elem=<element>][&callback=<function>].
Updates the value of an ADI for the specified ADI instance <instance>. The value, <data>, shall
be hex formatted (see
for more information). If <element> is speci-
fied, only the value of the specified element is updated. In this case, <data> shall only update
that single element value. When <element> is not specified, <data> shall represent the entire
array value. Optionally, a callback may be passed to the request for JSONP output
Name
Data Type
Note
result
Number
0 = success
POST adi/update.json - form data: inst=15&value=FF01
{
"result" : 0
}
Anybus
®
CompactCom
™
40 Common Ethernet Design Guide
HMSI-27–269 2.1