Closed NubeDev closed 9 months ago
@NubeDev Hi mate, just want your confirmation. This would be the bacwrp, right? Example:
bacwpm 123 1 44 85 16 4 100 1 45 85 16 4 100
So we will support this over MQTT also. The a sample json payload would be like:
{"deviceInstance":"17", "objects": [{"objectType":"0","objectInstance":"1","property":"117", "value": "166"}, {"objectType":"0","objectInstance":"1","property":"85", "value": "100.50"}], "mac":"192.168.15.17:47808"}
@NubeDev mate should we also support for multiple read? The link to the source file above is actually for read properly multiple.
Hi mate @NubeDev , I also supported read multiple property. Please test the latest version v0.0.50 when you have time mate. Thanks.
Here's a sample request payload.
{"deviceInstance":"5678", "objects": [{"objectType":"0","objectInstance":"1","property":"117"}, {"objectType":"1","objectInstance":"1","property":"85"}, {"objectType":"4","objectInstance":"1","property":"87"}], "mac":"10.104.0.11:47900"}
Sample result:
{ "deviceInstance" : "5678", "objects" : [{"objectType" : "0", "objectInstance" : "1", "property" : "117", "value" : "no-units"},{"objectType" : "1", "objectInstance" : "1", "property" : "85", "value" : "0.000000"},{"objectType" : "4", "objectInstance" : "1", "property" : "87", "value" : ["Null","Null","Null","Null","Null","Null","Null","Null","Null","Null","Null","Null","Null","Null","Null","Null"]}], "mac" : "10.104.0.11:47900" }
Closing this issue.
http://svn.code.sf.net/p/bacnet/code/trunk/bacnet-stack/src/rpm.c