-
Notifications
You must be signed in to change notification settings - Fork 128
0.18.1 Release Notes
A snarly old bug has finally been solved, and some contributions from the user community (and this needs to be added to the project the way other projects do to give credit where it's due!).
The basic premise of the library is that property values should have Pythonic
values whenever possible. For example, if the presentValue (a.k.a.
Present_Value) of an object is a Real then the Python value should be a
float. There is no distinction between the concept of a "list" and "array"
in Python, so lists of character strings should simply be
["this", "is", "a", "list"]
and exactly the same for an array.
This non-distinction wasn't properly accounted for, so in some cases the
property value needed to be constructed like ArrayOf(Integer)([1, 2, 3])
.
There is nothing wrong with creating them that way, but it caused some
confusion in the sample applications and in code.
This is cascade of bugs, the last one being solved by the fix above.
Sorting has changed in Python3.6+.
Building Python dictionaries out of objects and PDUs is an ongoing thing, so it was a surprise that someone else finds this useful, and including a fix is awesome.
There are probably other fixed size array properties hidden in undiscovered countries, this is a fix for one of them.
This resulted in a new sample application.
While I'm testing different versions of BACpypes with different versions of Python I lose track of which version is installed where; system, user, virtual environment, etc. This script launches each version of Python and attempts to import the library, then dump out the version and path.
There are a few versions of auto-discover applications that I have floating around and this one dives deeper into properties of objects and arrays. It has a "ToDoList" class which acts like a single threaded queue for requests and processing responses, and there can be multiple lists "running" at the same time.
There are better versions of this application over in the bacpypes-snapshot project which also has an application to "replay" the results.
Yep.