Beispiel #1
0
 public void FlushData()
 {
     if (IsConnected)
     {
         _serialPort.ClearOutputBuffer();
     }
 }
 /// <summary>
 /// Clear the communication
 /// </summary>
 public void ClearCommunication()
 {
     if (IsPortOpen)
     {
         _serialPort.ClearInputBuffer();
         _serialPort.ClearOutputBuffer();
     }
 }