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