Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
Bug in PropertyStates class
-
In
com.serotonin.bacnet4j.type.constructed.PropertyStates.java:118public PropertyStates(int type, BaseType state) { this.state = new Choice(type, state); }
I think it should be
public PropertyStates(int type, Encodable state) { this.state = new Choice(type, state); }
Most of the possible choices for a PropertyStates object are of Enumerated type, which doesn't extend from BaseType. The Choice constructor takes an Encodable as its parameter, so it should work. In my own testing, it appears to work just fine.