Example #1
0
 public void Open(string portname, uint baudRate)
 {
     try
     {
         serialPort.Open(portname, baudRate);
     }
     catch (Exception ex)
     {
         //port is already opened by another application OR
         //tried to open a removed port
         throw ex;
     }
     toSerThreadQueue.ClearQueue();
     fromSerThreadQueue.ClearQueue();
     StartSerThread();
 }