Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose Enumerations for More Meaningful message structures #49

Open
2 tasks
m2b opened this issue Aug 14, 2024 · 0 comments
Open
2 tasks

Expose Enumerations for More Meaningful message structures #49

m2b opened this issue Aug 14, 2024 · 0 comments

Comments

@m2b
Copy link

m2b commented Aug 14, 2024

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.

Current Behaviour (Bug Report)

Expected Behaviour (Bug Report)

Steps to reproduce Issue (Bug Report)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant