Example #1
0
 private void executePolling()
 {
     while (true)
     {
         while (!isStarted)
         {
             syncPolling.attendi();
         }
         Thread.Sleep(param.pollingPeriod);
         byte[] command = { (byte)Param.Commands.START, 0x00 };
         ComPort.Write(command, 0, 2);
     }
 }