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
+4 -2
View File
@@ -51,15 +51,17 @@ extern "C" {
/** Decode DailySchedule (sequence of times and values) */
BACNET_STACK_EXPORT
int bacnet_dailyschedule_decode(
int bacnet_dailyschedule_context_decode(
uint8_t * apdu,
int max_apdu_len,
uint8_t tag_number,
BACNET_DAILY_SCHEDULE * day);
/** Encode DailySchedule (sequence of times and values) */
BACNET_STACK_EXPORT
int bacnet_dailyschedule_encode(
int bacnet_dailyschedule_context_encode(
uint8_t * apdu,
uint8_t tag_number,
BACNET_DAILY_SCHEDULE * day);
#ifdef __cplusplus