User Manual
291 Appendix D
D.2.4 Digitalinput
D.2.4.1 GET /digitalinput/(all|{id})/value
Request The content-type will be ‘application/x-www-form-urlencoded’.
{id} : is the DI channel ID starting from 0
Examples:
Use the following URI to get the DI-0 value.
http://10.0.0.1/digitalinput/0/value
Use the following URI to get the all DI values.
http://10.0.0.1/digitalinput/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-6050 status=”OK”>
<DI>
<ID>0</ID>
<VALUE>0</VALUE>
</DI>
</ADAM-6050>
If result is failed , the content will look like below
<?xml version="1.0" ?>
<ADAM-6050 status=”{error}”>
</ADAM-6050>
{error} : The error message.
Remarks If the {id} is out of range, the response will return HTTP status
code 501 (Not implemented)