
ZB0929
Gateway
20
The response syntax of the IoT Core is:
{
"cid":id,
"data":{"value":resp_data},
"code":diag_code
}
Parameter
Description
id
Correlation ID for the assignment of request and response
resp_data
Value of the data point; depending on the data type of the data point
diag_code
Diagnostic code
12.3.1.1 Example: GET request
Request via browser to query the product code:
http://192.168.0.15:8001/deviceinfo/productcode/getdata
Response:
{
"cid": 1,
"data":{"value":"ZB0929"},
"code":200
}
Request for a measurement outside the set measurement interval.
http://192.168.0.15:8001/nodes/vwv-node-ifm12345/processdatanode/on-demand-
measurement
Measurements outside the measurement interval shorten the life of the product.
A command is sent to the VWV00x sensor with the serial number
ifm12345
, triggering an immediate
measurement outside the measurement interval. The measured data must then be queried with the
getdata
service under the corresponding data points, e.g. with the request:
http://192.168.0.15/nodes/vwv-node-ifm12345/processdatanode/vibration-measurement-
x/v-rms-x/getdata
12.3.2 POST request
Using the POST method the user has read and write access to a data point.
The syntax of the request to the IoT Core is:
{
"code":"code_id",
"cid":id,
"adr":"/data_point/service",
"data":{req_data}
}