Exemplo n.º 1
0
 /// <summary>
 /// 关闭连接串口处理
 /// </summary>
 public void Disconnect()
 {
     try
     {
         if (RWDeviceDll.DisconnectReader() == OK)
         {
             fComopen = false;
             model    = 0;
         }
         else
         {
             throw new Exception("关闭设备连接处理失败!");
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }