Created demo for TimeSync service and tested it on Win32.

This commit is contained in:
skarg
2006-02-21 21:54:37 +00:00
parent de4abea3c5
commit 4e5f4a68e4
12 changed files with 659 additions and 18 deletions
+11 -11
View File
@@ -194,20 +194,20 @@ void testTimeSyncData(Test * pTest,
void testTimeSync(Test * pTest)
{
BACNET_DATE my_date;
BACNET_TIME my_time;
BACNET_DATE bdate;
BACNET_TIME btime;
my_date.year = 2006; /* AD */
my_date.month = 4; /* 1=Jan */
my_date.day = 11; /* 1..31 */
my_date.wday = 1; /* 1=Monday */
bdate.year = 2006; /* AD */
bdate.month = 4; /* 1=Jan */
bdate.day = 11; /* 1..31 */
bdate.wday = 1; /* 1=Monday */
my_time.hour = 7;
my_time.min = 0;
my_time.sec = 3;
my_time.hundredths = 1;
btime.hour = 7;
btime.min = 0;
btime.sec = 3;
btime.hundredths = 1;
testTimeSyncData(pTest, &my_date, &my_time);
testTimeSyncData(pTest, &bdate, &btime);
}
#ifdef TEST_TIMESYNC