43
First steps
First the HTTP server need to read the device description of the device.
With the received information the applicable services and data points can be accessed.
►
Send the following POST request to the DEVICE:
URL:
http://192.168.0.79:8080/gettree
Method: POST
Request body data:
{
"code":"request",
"cid":1,
"adr":"gettree"
}
>
The device returns the "device description" as structured JSON object.
►
Identify all substructures and the data points contained therein in the tree structure of the JSON object.
►
Identify the applicable services for the access to substructures and the data points contained therein.
Example response for DTE105 device:
Method: POST
Response data:
{
"cid":0001,
"data":{
"identifier":"DTE105AA-0000032653",
"type":"device",
"subs":[
{
"identifier":"GetIdentity",
"type":"service"
},
...
{
"identifier":"ipconfig",
"type":"structure",
"profiles":[
"network",
"network_ethernet",
"datablock",
"parametergroup"
...
],
"subs":[
{"identifier":"setblock","type":"service"},
...
]
}
}