fh1ch / node-bacstack

A BACnet protocol stack written in pure JavaScript
MIT License
174 stars 98 forks source link

Only one value appearing in "value" of Status Flags #148

Open BrijeshAnchan opened 4 years ago

BrijeshAnchan commented 4 years ago

Node Version: 12.18.1

Node BACstack Version: 0.0.6

Question The Status flag is supposed to be an array of length 4 ( like [0,1,1,0] ), but I only get one 0 ( {"value":[0], "bitsUsed":4} ) when I run the readPropertyMultiple() function on an Analog Value Object. Which flag is it referring to among IN_ALARM, FAULT, OVERRIDDEN and OUT_OF_SERVICE ?

I am trying to make use of the FAULT bit in the Status Flags, how can I achieve this?

statusJson

statusFlag