Sets a range of time slots in a schedule array. Modifies the schedule array in place and returns it.
The schedule array to modify.
Day of week (0=Monday, 6=Sunday).
Starting hour (0-23).
Ending hour (0-24, exclusive).
Value to set (0=OFF, 1=Economy/Power1, 2=Comfort/Power5).
// Set Monday 08:00-18:00 to Comfortconst schedule = createEmptySchedule();setScheduleRange(schedule, 0, 8, 18, 2); Copy
// Set Monday 08:00-18:00 to Comfortconst schedule = createEmptySchedule();setScheduleRange(schedule, 0, 8, 18, 2);
Sets a range of time slots in a schedule array. Modifies the schedule array in place and returns it.