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); }
public Task <bool> ControlRelay(int deviceNumber, int itemCount, int relayNumber, RelayStatus relayStatus) { throw new NotImplementedException(); }