Gateway
ZB0929
21
Field
Parameter
Description
code
code_id
Service class
• request
Request
• transaction
Transaction
• event
Event
cid
id
Correlation ID for the assignment in pairs of request and response; identi-
fier freely assignable by the user
adr
data_point
Data point of the element tree to be accessed
service
Service to be performed
data
req_data
Data sent to the IoT Core (e.g. new values); syntax depending on the ser-
vice.
Optional: only required for services that send data to the IoT Core (e.g.
setdata)
The response syntax of the IoT Core is:
{
"cid":id,
"data":{"value":resp_data},
"code":diag_code
}
Field
Parameter
Description
cid
id
Correlation ID for the assignment of request and response
data
resp_data
Values returned by the IoT Core; syntax depending on the service.
Optional: only required for services that receive data from the IoT Core (e.g. getdata)
code
diag_code
Diagnostic code
12.3.2.1 Example: POST request to read data
Request:
{
"code":"request",
"cid":4711,
"adr":"/deviceinfo/productcode/getdata"
}
Response:
{
"cid":4711,
"adr": "/deviceinfo/productcode/getdata",
"data":{"value":"ZB0929"},
"code":200
}
12.3.2.2 Example: POST request to write data
Request: