#!/usr/bin/env python """ This application creates a series of Local Schedule Objects and then prompts to test dates and times. """ from time import localtime as _localtime from bacpypes.debugging import bacpypes_debugging, ModuleLogger, xtob from bacpypes.consolelogging import ConfigArgumentParser from bacpypes.consolecmd import ConsoleCmd from bacpypes.core import run from bacpypes.primitivedata import Null, Integer, Real, Date, Time, CharacterString from bacpypes.constructeddata import ArrayOf, SequenceOf from bacpypes.basetypes import ( CalendarEntry, DailySchedule, DateRange, DeviceObjectPropertyReference, SpecialEvent, SpecialEventPeriod, TimeValue, ) from bacpypes.app import BIPSimpleApplication from bacpypes.local.device import LocalDeviceObject from bacpypes.local.schedule import LocalScheduleObject # some debugging _debug = 0 _log = ModuleLogger(globals()) # globals schedule_objects = [] # # TestConsoleCmd # @bacpypes_debugging class TestConsoleCmd(ConsoleCmd): def do_test(self, args): """test