new: Property_List (371) support in the AnotherStorageImplementation example#193
Merged
Conversation
…ion example Add get2_PROP_PROPERTY_LIST() to BaCSharpObject so every object reports its Property_List by reflecting over its PROP_* properties, excluding the four the standard omits (Object_Identifier, Object_Name, Object_Type, Property_List). Answers the 'how do I implement Property_List' request.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
get2_PROP_PROPERTY_LIST()toBaCSharpObject, so every object in the sample device reports its Property_List (BACnetPropertyIdentifier 371 — now required for Device and objects).It reflects over the object's
PROP_*properties (andget2_computed properties) and returns their identifiers, excluding the four the standard requires to be omitted: Object_Identifier, Object_Name, Object_Type and Property_List itself. Because it lives on the base class and uses the sample's existingget2_<prop>read hook, every object gets it for free.Verified: reading Property_List on an
AnalogInputreturns its 15 supported properties with the four excluded ones absent.Closes #83.