Skip to content

new: Property_List (371) support in the AnotherStorageImplementation example#193

Merged
gralin merged 1 commit into
masterfrom
example-property-list
Jul 3, 2026
Merged

new: Property_List (371) support in the AnotherStorageImplementation example#193
gralin merged 1 commit into
masterfrom
example-property-list

Conversation

@gralin

@gralin gralin commented Jul 3, 2026

Copy link
Copy Markdown
Member

Adds get2_PROP_PROPERTY_LIST() to BaCSharpObject, 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 (and get2_ 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 existing get2_<prop> read hook, every object gets it for free.

Verified: reading Property_List on an AnalogInput returns its 15 supported properties with the four excluded ones absent.

Closes #83.

…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.
@gralin gralin merged commit 73b58ac into master Jul 3, 2026
4 checks passed
@gralin gralin deleted the example-property-list branch July 3, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Example implementation of PROPERTY_LIST

1 participant