Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
BACnet4j Schedule
-
Hey Team,
I have created a schedule object using bacnet4j library in java. Like below
final AnalogValueObject av0 = new AnalogValueObject(d1, 100, "av0", 98, EngineeringUnits.amperes, false) .supportCommandable(-2); final SequenceOf<CalendarEntry> dateList = new SequenceOf<>( new CalendarEntry(new Date(-1, null, -1, DayOfWeek.FRIDAY)), // Every Friday. new CalendarEntry(new DateRange(new Date(-1, Month.NOVEMBER, -1, null), new Date(-1, Month.FEBRUARY, -1, null))), new CalendarEntry(new WeekNDay(Month.FEBRUARY, WeekNDay.WeekOfMonth.days22to28, DayOfWeek.WEDNESDAY))); final CalendarObject co = new CalendarObject(d1, 9999, "cal0", dateList); final DateRange effectivePeriod = new DateRange(Date.UNSPECIFIED, Date.UNSPECIFIED); final BACnetArray<DailySchedule> weeklySchedule = new BACnetArray<>( // new DailySchedule(new SequenceOf<>(new TimeValue(new Time(8, 0, 0, 0), new Real(10)), new TimeValue(new Time(17, 0, 0, 0), new Real(11)), new TimeValue(new Time(19, 0, 0, 0), new Real(1112)))), // new DailySchedule(new SequenceOf<TimeValue>()), // new DailySchedule(new SequenceOf<TimeValue>()), // new DailySchedule(new SequenceOf<TimeValue>()), // new DailySchedule(new SequenceOf<TimeValue>()), // new DailySchedule(new SequenceOf<TimeValue>()), // new DailySchedule(new SequenceOf<TimeValue>())); final SequenceOf<DeviceObjectPropertyReference> listOfObjectPropertyReferences = new SequenceOf<>( new DeviceObjectPropertyReference(av0.getId(), PropertyIdentifier.presentValue, null, null)); final ScheduleObject so = new ScheduleObject(d1, 10, "sch0", effectivePeriod, weeklySchedule, exceptionSchedule, new Real(21), listOfObjectPropertyReferences, 12, false);
Now the question is, I want set the null after Time(19, 0, 0, 0) on monday like below code, However i couldn't able to do that, because i'm getting the error saying class=property, code=invalid-data-type
at com.serotonin.bacnet4j.obj.ScheduleObject.validateProperty(ScheduleObject.java:191)new DailySchedule(new SequenceOf<>(new TimeValue(new Time(8, 0, 0, 0), new Real(10)), new TimeValue(new Time(17, 0, 0, 0), new Real(11)), new TimeValue(new Time(19, 0, 0, 0), new Real(1112)))) new TimeValue(new Time(20, 0, 0, 0), new Null())))
I want to set null value on Time(20, 0, 0, 0), because i want the default value to set it as present value.
Thanks
-
Can someone help me with above ?