Skip to content

Expose Enumerations for More Meaningful message structures #49

@m2b

Description

@m2b

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions