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