or JavaScript Object Notation, is a minimal, human-readable format for structuring data.
It is used primarily to transmit data between a server and web application, as an alter‐
native to XML.
7.4.2 API
The API itself is accessible under the following address:
http://[Host Name]/[Namespace]/[Variable | Method]
Host Name: IP or hostname of the device
Namespace: Namespace identifier for the functionality. The default namespace is
“api”. Exceptions are noted below.
Variable: Name of the variable which should be read or set
Method: Name of the method which should be called
http://[Host Name]/api/[Namespace Name]/[Variable | Method]
NOTE
The available variables, methods, and namespaces are listed below.
7.4.3 Request
SIG200 supports the GET and POST request types.
GET is used to read variables (without parameters).
POST is used to read and write variables and call methods.
Each API call will be executed synchronously. That means that a response follows each
request. These include the demanded data and additional status information.
Type: GET | POST
URL http://device/api/variable
MIME-Type: application/json
Payload: <empty> | variable | parameter
The type of the request depends on the use case as described by the following table:
Table 12: Request types
Use case Request type
Read data GET
Write data POST
Method call POST
Login POST
Values or method parameters must be wrapped in a data object and must be passed
as JSON String inside the POST request payload like this:
{
"data":
{
"name": value
}
}
The exact format of variables and parameters are described inside the chapter Data
Types.
SIG200 CONFIGURATION
7
8017853/2019-06-06 | 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
55
Subject to change without notice