예제 #1
0
 public BlustreamHDBTMatrixProtocol(ISerialTransport transport, byte id)
     : base(transport, id)
 {
     base.PowerIsOn       = true;
     base.PollingInterval = 20000;
     this.sbResponse      = new StringBuilder("");
 }
 public ChristieProjectorProtocol(ISerialTransport transportDriver, byte id)
     : base(transportDriver, id)
 {
     ResponseValidation = new ResponseValidator(Id, ValidatedData, this);
     ValidatedData.PowerOnPollingSequence = new[]
     {
         StandardCommandsEnum.VideoMutePoll,
         StandardCommandsEnum.LampHoursPoll,
         StandardCommandsEnum.InputPoll
     };
 }
        public SspCompanyVideoDisplayProtocol(ISerialTransport transport, byte ID) : base(transport, ID)
        {
            // Set response validation object
            ResponseValidation = new ResponseValidator(ValidatedData);

            // Set up polling sequence when device powers on and powers off
            ValidatedData.PowerOnPollingSequence  = new[] { StandardCommandsEnum.PowerPoll, StandardCommandsEnum.VolumePoll, StandardCommandsEnum.InputPoll };
            ValidatedData.PowerOffPollingSequence = new[] { StandardCommandsEnum.PowerPoll };

            // How often to poll the device
            PollingInterval = 1000;
        }
 public RelayProtocol(ISerialTransport transport, byte id, int pollingInterval, bool consoleDebuggingEnabled)
     : base(transport, id)
 {
     base.PollingInterval          = pollingInterval;
     this._consoleDebuggingEnabled = consoleDebuggingEnabled;
 }
 public RelayProtocol(ISerialTransport transport, byte id, int pollingInterval)
     : base(transport, id)
 {
     base.PollingInterval = pollingInterval;
 }
 public RelayProtocol(ISerialTransport transport, byte id)
     : base(transport, id)
 {
 }