AL4103
Remote I/O module 16 DI
32
Solution:
Use the service gettree to output the required subtree (root node: firmware, sub-levels to be
shown: 1)
•
Request:
{
"code":"request",
"cid":4711,
"adr":"gettree",
"data":{"adr":"firmware","level":1}
}
•
Response:
{
"cid":4711,
"data":{
"identifier":"firmware",
"type":"structure",
"profiles":["software","software/uploadablesoftware","devicereset"],
"subs":[
{"identifier":"version","type":"data","profiles":
["parameter"],"profiles":["parameter"],"format":
{"type":"string","namespace":"json","encoding":"UTF-8"}},
{"identifier":"type","type":"data","profiles":["parameter"],"format":
{"type":"string","namespace":"json","encoding":"UTF-8"}},
{"identifier":"factoryreset","type":"service"},
{"identifier":"install","type":"service"},
{"identifier":"signal","type":"service"},
{"identifier":"container","type":"data","profiles":["blob"],"format":
{"type":"binary","namespace":"json","encoding":"base64"}},
{"identifier":"reboot","type":"service"}
]
},
"adr":"gettree",
"code":200
}
9.2.3.2 Example: Reading several elements sequentially
Task:
The following current values of the device are to be read consecutively: Temperature, serial
number
Solution:
Read the current parameter values using the service
getdatamulti
(data point
temperature:
/processdatamaster/temperature
; data point serial number:
/deviceinfo/
serialnumber
)
•
Request:
{
"code":"request",
"cid":4711,
"adr":"/getdatamulti",
"data":{"datatosend":[
"/processdatamaster/temperature",
"/deviceinfo/serialnumber"]
}
}
•
Response: