IQRF Standard manager - extension
IQRF Sensor
- add parsing of breakdown objects
e.g.
{
"mType":"iqrfSensor_ReadSensorsWithTypes",
"data":{
"msgId":"1556532379",
"rsp":{
"nAdr":1,
"hwpId":1026,
"rCode":0,
"dpaVal":81,
"result":{
"sensors":[
{
"id":"TEMPERATURE",
"type":1,
"name":"Temperature",
"shortName":"T",
"value":16.5,
"unit":"°C"
},
{
"id":"BINARYDATA7",
"type":129,
"name":"Binary data7",
"shortName":"bin7",
"value":13,
"unt":"?",
"breakdown":[
{
"id":"BINARYDATA7",
"type":129,
"name":"Light indicator",
"shortName":"light",
"unit":"%",
"value":89.8
}
]
},
{
"id":"BINARYDATA7",
"type":129,
"name":"Binary data7",
"shortName":"bin7",
"value":47,
"unit":"?",
"breakdown":[
{
"id":"BINARYDATA7",
"type":129,
"name":"Potentiometer",
"shortName":"pot",
"unit":"%",
"value":63
}
]
}
]
}
},
"raw":[
{
"request":"01.00.5e.01.ff.ff.ff.ff.ff.ff",
"requestTs":"2019-04-29T10:06:19.917598",
"confirmation":"01.00.5e.01.ff.ff.ff.4f.01.08.01",
"confirmationTs":"2019-04-29T10:06:19.947588",
"response":"01.00.5e.81.02.04.00.51.01.08.01.81.0d.81.2f",
"responseTs":"2019-04-29T10:06:20.201636"
}
],
"insId":"iqdgw01-0242801d218e12ac",
"statusStr":"ok",
"status":0
}
}
- as optional: to see sent and received JSON reqs/rsps
Edited by Roman Ondráček