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