NOTE
Please make sure to use application/json as the mime-type.
NOTE
The HTTP request payload should be empty if a method has no parameter.
Get variable
The variable named "angle" shall be read:
Type: GET
URL http://device/api/angle
Payload: <empty>
Set variable
The variable named "angle" shall be set to 42:
Type: POST
URL: http://device/api/angle
MIME-Type: application/json
Payload:
{
"data":
{
"angle": 42
}
}
Call method
The method setDeviceState(state) shall be called with a parameter value of 42:
Type: POST
URL: http://device/api/setDeviceState
MIME-Type: application/json
Payload:
{
"data":
{
"state": 42
}
}
7.4.4 Response
The device will respond to every request either with a status information and data or
just with status information if no data is available. In case of an error it will return a
status code unequal zero and an optional error description. These return values will be
transmitted inside the payload of the HTTP Response.
{
"header":
{
7 SIG200 CONFIGURATION
56
O P E R A T I N G I N S T R U C T I O N | Sensor Integration Gateway - SIG200 8017853/2019-06-06 | SICK
Subject to change without notice