45
Subject to error and alteration
Integration Into Existing Systems
http://<ip-adresse>/rest/json/iostate/output/0
To remain compatible with the Web-IO products which have more
than one output, Index 0 must be specified for Output 0.
The following parameters are sent:
Set=ON
The Web-IO replies with
{
“iostate” :
{
“output” : [
{
“number” : 0,
“state” : 1
}
]
}
}
The same URL can be used to turn the output off using the
parameter Set=Off or to change its state using Set=TOGGLE.
Clearing counters for example is done by using a POST to the
following URL:
http://<ip-adresse>/rest/json/iostate/counterclear/0
No additional parameter needs to be sent.
The Web-IO replies with
{
“iostate” :
{
“counter” : [
{
“number” : 0,
“state” : 0
}
]
}
}