public static void CloseConnection() { if (IsRS232) { PortConnection.ClosePortIfOpened(); Instance.ComunicationStatus = RoundBoolLed.IDLE; } else if (IsCAN) { //todo } }
protected override void OnExit(ExitEventArgs e) { PortConnection.ClosePortIfOpened(); base.OnExit(e); }
public bool closeConnection(int canNodeId = 127) { PortConnection.ClosePortIfOpened(); return(true); }