![SICK SIG200 Operating Instruction Download Page 63](http://html.mh-extra.com/html/sick/sig200/sig200_operating-instruction_1264337063.webp)
Values or method parameters must be included in a data object and passed as a JSON
string within the POST request user data as follows:
{
"data":
{
"name": value
}
}
The exact format of the variables and parameters is described in section
NOTE
Please make sure to use application/json as the mime-type.
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
}
}
SIG200 CONFIGURATION
7
8017853.1D0S/2021-11-04 | SICK
O P E R A T I N G I N S T R U C T I O N | Sensor Integration Gateway - SIG200
63
Subject to change without notice