Bugfix/property array element zero size (#908)
* Changed BACnetARRAY index validation into ReadProperty, ReadPropertyMultiple, WriteProperty, and WritePropertyMultiple handlers. * Changed the basic and example objects after refactoring BACnetARRAY index validation into ReadProperty, ReadPropertyMultiple, WriteProperty, and WritePropertyMultiple handlers. * Added BACnet application decoder that understands that an array element of zero is an unsigned integer tagged value. Fixes RP and RPM apps when reading the array element zero of arrays.
This commit is contained in:
@@ -325,6 +325,14 @@ int bacapp_decode_known_property(
|
||||
BACNET_APPLICATION_DATA_VALUE *value,
|
||||
BACNET_OBJECT_TYPE object_type,
|
||||
BACNET_PROPERTY_ID property);
|
||||
BACNET_STACK_EXPORT
|
||||
int bacapp_decode_known_array_property(
|
||||
const uint8_t *apdu,
|
||||
int apdu_size,
|
||||
BACNET_APPLICATION_DATA_VALUE *value,
|
||||
BACNET_OBJECT_TYPE object_type,
|
||||
BACNET_PROPERTY_ID property,
|
||||
uint32_t array_index);
|
||||
|
||||
BACNET_STACK_EXPORT
|
||||
int bacapp_known_property_tag(
|
||||
|
||||
Reference in New Issue
Block a user