Esempio n. 1
0
 void time_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
 {
     if (Comm != null)
     {
         if (Comm.IsOpen)
         {
             if (Comm.BytesToRead > 0)
             {
                 bt = new byte[Comm.BytesToRead];
                 Comm.Read(bt, 0, bt.Length);
                 _ComDataSplitcs.AddBytes(bt);
             }
         }
     }
 }