Gateway
ZB0929
23
Service
Description
../getdata
Read the value of the element
../setdata
Write the value of the element
12.3.5.1 Example: Reading several parameter values of the gateway simultaneously
Task
The following current values are to be read by the device: IoT Core version, serial number
Solution
Read the current parameter values using the service
getdatamulti
(data point version:
/iotCore/
version
; data point serial number:
/deviceinfo/serialnumber
)
POST request example
Request:
{
"code":"request",
"cid":4711,
"adr":"/getdatamulti",
"data":{"datatosend":["/iotCore/version","/deviceinfo/serialnumber"]}
}
Response:
{
"code": 200,
"cid": 5,
"adr": "/getdatamulti",
"data":
{
"/iotCore/version": { "code": 200, "data": "1.0.0.0" },
"/deviceinfo/serialnumber": { "code": 200, "data": "ifm12345" }
}
}
12.3.6 Defined tree structure
The tree structure of the IoT Core interface is divided into various substructures.
These include information about the device, functions for updating the device firmware and the IoT
core interface.
The
nodes
structure is offered as an additional substructure. It builds up a separate substructure for
each connected VWV00x sensor.
Structure:
[ip address]:8001
Substructure
Description
[ip address]:8001
../deviceinfo
Information about the device
../firmware
Information and update of the device firmware
../iotCore
Information and update of the IoT Core interface
../nodes
Substructure