Implement missing data types for calendar and schedule (#474)

* Added the SpecialEvent struct for the Exception_Schedule property of Schedule, encode/decode/same functions, unit tests, and integrated into bacapp functions.

* Added the CalendarEntry struct for the Date_List property of Calendar and the SpecialEvent struct, encode/decode functions, unit tests, and integrated into bacapp functions.

* Added the DateRange struct for the Effective_Period property of Schedule, encode/decode functions, unit tests, and integrated into bacapp functions.

---------

Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
Ondřej Hruška
2024-02-01 17:57:46 +01:00
committed by GitHub
parent 7ad82f19a0
commit 340bd09561
120 changed files with 2003 additions and 124 deletions
+3 -2
View File
@@ -7,7 +7,7 @@
/* @file
* @brief test BACnet integer encode/decode APIs
*/
#include <math.h>
#include <zephyr/ztest.h>
#include <bacnet/wp.h>
@@ -129,7 +129,8 @@ static void testWritePropertyTag(BACNET_APPLICATION_DATA_VALUE *value)
test_value.type.Signed_Int, value->type.Signed_Int, NULL);
break;
case BACNET_APPLICATION_TAG_REAL:
zassert_equal(test_value.type.Real, value->type.Real, NULL);
zassert_false(islessgreater(test_value.type.Real, value->type.Real),
NULL);
break;
case BACNET_APPLICATION_TAG_ENUMERATED:
zassert_equal(