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:
@@ -291,8 +291,9 @@ static void testEventEventState(void)
|
||||
zassert_equal(data.notificationParams.changeOfValue.tag,
|
||||
data2.notificationParams.changeOfValue.tag, NULL);
|
||||
|
||||
zassert_equal(data.notificationParams.changeOfValue.newValue.changeValue,
|
||||
data2.notificationParams.changeOfValue.newValue.changeValue, NULL);
|
||||
zassert_false(islessgreater(
|
||||
data.notificationParams.changeOfValue.newValue.changeValue,
|
||||
data2.notificationParams.changeOfValue.newValue.changeValue), NULL);
|
||||
|
||||
/*
|
||||
** Event Type = EVENT_CHANGE_OF_VALUE - bitstring value
|
||||
@@ -462,14 +463,15 @@ static void testEventEventState(void)
|
||||
apdu_len, test_len, "apdu_len=%d test_len=%d", apdu_len, test_len);
|
||||
verifyBaseEventState();
|
||||
|
||||
zassert_equal(data.notificationParams.floatingLimit.referenceValue,
|
||||
data2.notificationParams.floatingLimit.referenceValue, NULL);
|
||||
|
||||
zassert_equal(data.notificationParams.floatingLimit.setPointValue,
|
||||
data2.notificationParams.floatingLimit.setPointValue, NULL);
|
||||
|
||||
zassert_equal(data.notificationParams.floatingLimit.errorLimit,
|
||||
data2.notificationParams.floatingLimit.errorLimit, NULL);
|
||||
zassert_false(islessgreater(
|
||||
data.notificationParams.floatingLimit.referenceValue,
|
||||
data2.notificationParams.floatingLimit.referenceValue), NULL);
|
||||
zassert_false(islessgreater(
|
||||
data.notificationParams.floatingLimit.setPointValue,
|
||||
data2.notificationParams.floatingLimit.setPointValue), NULL);
|
||||
zassert_false(islessgreater(
|
||||
data.notificationParams.floatingLimit.errorLimit,
|
||||
data2.notificationParams.floatingLimit.errorLimit), NULL);
|
||||
zassert_true(
|
||||
bitstring_same(&data.notificationParams.floatingLimit.statusFlags,
|
||||
&data2.notificationParams.floatingLimit.statusFlags),
|
||||
@@ -508,14 +510,16 @@ static void testEventEventState(void)
|
||||
zassert_equal(apdu_len, test_len, NULL);
|
||||
verifyBaseEventState();
|
||||
|
||||
zassert_equal(data.notificationParams.outOfRange.deadband,
|
||||
data2.notificationParams.outOfRange.deadband, NULL);
|
||||
zassert_false(islessgreater(data.notificationParams.outOfRange.deadband,
|
||||
data2.notificationParams.outOfRange.deadband), NULL);
|
||||
|
||||
zassert_equal(data.notificationParams.outOfRange.exceededLimit,
|
||||
data2.notificationParams.outOfRange.exceededLimit, NULL);
|
||||
zassert_false(islessgreater(
|
||||
data.notificationParams.outOfRange.exceededLimit,
|
||||
data2.notificationParams.outOfRange.exceededLimit), NULL);
|
||||
|
||||
zassert_equal(data.notificationParams.outOfRange.exceedingValue,
|
||||
data2.notificationParams.outOfRange.exceedingValue, NULL);
|
||||
zassert_false(islessgreater(
|
||||
data.notificationParams.outOfRange.exceedingValue,
|
||||
data2.notificationParams.outOfRange.exceedingValue), NULL);
|
||||
zassert_true(bitstring_same(&data.notificationParams.outOfRange.statusFlags,
|
||||
&data2.notificationParams.outOfRange.statusFlags),
|
||||
NULL);
|
||||
|
||||
Reference in New Issue
Block a user