示例#1
0
 public RelayItem(int relayNumber, RelayStatus relayStatus)
 {
     RelayNumber = relayNumber;
     RelayStatus = relayStatus;
 }
        public async Task <bool> ControlRelay(int deviceNumber, int itemCount, int relayNumber, RelayStatus relayStatus)
        {
            var sendCommand = new ControlRelayStatusCommand(deviceNumber, relayNumber, relayStatus, itemCount);
            var tlAutoDeviceSerialPortAsync = new TLAutoDeviceSerialPortAsync <bool>(this, sendCommand, null);
            await tlAutoDeviceSerialPortAsync.InvokeAsync();

            return(true);
        }
示例#3
0
 public Task <bool> ControlRelay(int deviceNumber, int itemCount, int relayNumber, RelayStatus relayStatus)
 {
     throw new NotImplementedException();
 }