public void switchOff(CommunicationManager comm) { comm.OpenPort(); comm.WriteData(switchOffSignal); isSwitchedOn = false; //inicomm.ClosePort(); }
public void switchOff(CommunicationManager comm) { comm.WriteData(switchOffSignal); isSwitchedOn = false; //inicomm.ClosePort(); }
public void switchOn(CommunicationManager comm) { comm.WriteData(switchOnSignal); //comm.ClosePort(); isSwitchedOn = true; }
public void switchOn(CommunicationManager comm) { comm.OpenPort(); comm.WriteData(switchOnSignal); //comm.ClosePort(); isSwitchedOn = true; }