-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Node Version: Latest
Node BACstack Version: Latest
- Bug Report
- [ x] Feature Request
- Question
Note: Make sure you have read the FAQs
before logging this issue.
Feature Request / Question
Messages returned include codes for Object, Properties, Datatypes and ernaUnits Of Measure. Use has to parsed messages and externally convert the codes to meaningful Json property names.
Example returned from BACNet read:
{"len":126,"values":[{"objectId":{"type":0,"instance":0},"values":[{"id":77,"index":4294967295,"value":[{"value":"Phase1Current","type":7,"encoding":0}]},{"id":85,"index":4294967295,"value":[{"value":0,"type":4}]},{"id":117,"index":4294967295,"value":[{"value":95,"type":9}]}]},{"objectId":{"type":0,"instance":1},"values":[{"id":77,"index":4294967295,"value":[{"value":"Phase2Current","type":7,"encoding":0}]},{"id":85,"index":4294967295,"value":[{"value":0,"type":4}]},{"id":117,"index":4294967295,"value":[{"value":95,"type":9}]}]},{"objectId":{"type":0,"instance":2},"values":[{"id":77,"index":4294967295,"value":[{"value":"Phase3Current","type":7,"encoding":0}]},{"id":85,"index":4294967295,"value":[{"value":0,"type":4}]},{"id":117,"index":4294967295,"value":[{"value":95,"type":9}]}]}]}
Desired or similar with all id, type, instances and value (if units) replace:
{"analog-input":2,"ObjectName":{"index":4294967295,"value":[{"datatype":"Character String","value":"Phase3Current"}]},"PresentValue":{"index":4294967295,"value":[{"datatype":"Real","value":0}]},"Units":{"index":4294967295,"value":[{"datatype":"Enumerated","value":"noUnits"}]}}
The request is for USER not to have to maintain enumerations but rather expose them via SDK or Nodes.