Added basic timer object, internal state machine, and unit tests (#1123)

* Added basic timer object, internal state machine, and unit tests

* Added BACnetTimerStateChangeValue encode, decode, parse, print, and diff with unit tests

* Changed handler of add/remove list element to check if the property is a BACnetLIST

* Added BACnetLIST utility for handling WriteProperty to a list.

* Fixed outlier ReadProperty object handlers to return zero when the RP parameter is NULL.
This commit is contained in:
Steve Karg
2025-11-05 15:11:45 -06:00
committed by GitHub
parent 17259b37f3
commit 4dd13cf199
126 changed files with 5509 additions and 56 deletions
+4 -4
View File
@@ -285,9 +285,9 @@ static void test_Notification_Class_Recipient_List(void)
list_element.first_failed_element_number = 0;
err = Notification_Class_Add_List_Element(&list_element);
zassert_equal(err, BACNET_STATUS_ERROR, NULL);
zassert_equal(list_element.error_class, ERROR_CLASS_SERVICES, NULL);
zassert_equal(list_element.error_class, ERROR_CLASS_PROPERTY, NULL);
zassert_equal(
list_element.error_code, ERROR_CODE_PROPERTY_IS_NOT_A_LIST, NULL);
list_element.error_code, ERROR_CODE_WRITE_ACCESS_DENIED, NULL);
/* valid element, valid property, array element (object is not an array) */
list_element.object_property = PROP_RECIPIENT_LIST;
list_element.array_index = 0;
@@ -346,9 +346,9 @@ static void test_Notification_Class_Recipient_List(void)
list_element.object_property = PROP_ALL;
err = Notification_Class_Remove_List_Element(&list_element);
zassert_equal(err, BACNET_STATUS_ERROR, NULL);
zassert_equal(list_element.error_class, ERROR_CLASS_SERVICES, NULL);
zassert_equal(list_element.error_class, ERROR_CLASS_PROPERTY, NULL);
zassert_equal(
list_element.error_code, ERROR_CODE_PROPERTY_IS_NOT_A_LIST, NULL);
list_element.error_code, ERROR_CODE_WRITE_ACCESS_DENIED, NULL);
/* invalid array */
list_element.object_property = PROP_RECIPIENT_LIST;
list_element.array_index = 0;