NOTE
The HTTP request user data should be empty if a method has no parameters.
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 setDeviceState(state) method is to be called with a parameter value of 42:
Type: POST
URL: http://device/api/setDeviceState
MIME-Type: application/json
Payload:
{
"data":
{
"state": 42
}
}
7.3.4 Response
The device responds to each request with either status information and data or only
status information if no data is available. In case of an error, it returns a non-zero status
code and an optional error description. These return values are transmitted within the
user data of the HTTP response.
{
"header":
{
"status": status code,
"message": status code description
},
"data":
7  SIG200 CONFIGURATION
30
O P E R A T I N G   I N S T R U C T I O N | Sensor Integration Gateway - SIG200 8024482.1FJ7 /2022-05-31 | SICK
Subject to change without notice