User Manual
287 Appendix D
D.2.2 Analoginput
D.2.2.1 GET/analoginput/(all|{id})/value
Request The content-type will be ‘application/x-www-form-urlencoded’.
{id} : is the AI channel ID starting from 0
Examples:
Use the following URI to get the AI-0 value.
http://10.0.0.1/analoginput/0/value
Use the following URI to get the all AI values.
http://10.0.0.1/analoginput/all/value
Response The content-type will be ‘text/xml’
If result is OK, the content will look like below
<?xml version="1.0" ?>
<ADAM-6017 status=”OK”>
<AI>
<ID>0</ID>
<
VALUE>7FFF</VALUE>
</AI>
</ADAM-6017>
If result is failed , the content will look like below
<?xml version="1.0" ?>
<ADAM-6017 status=”{error}”>
</ADAM-6017>
{error} : The error message.
Remarks If the {id} is out of range, the response will return HTTP status
code 501 (Not implemented)
The content of <VALUE> is in HEX format and from 0000 to FFFF,
which maps to the minimal to maximal value of the range. (Analog
input value is 16 bits)