private void ComprobarRaspberry()
 {
     while (true)
     {
         try
         {
             while (true)
             {
                 log.Debug("Test raspbery");
                 raspberry_conectado = socketConector.Ping(direccion_ip_texto.Text);
                 Thread.Sleep(200);
             }
         }
         catch (Exception) { }
     }
 }
Пример #2
0
 private void ComprobarRaspberry()
 {
     while (true)
     {
         try
         {
             while (true)
             {
                 raspberry_conectado = socketConector.Ping(direccion_ip_texto.Text);
                 Thread.Sleep(200);
             }
         }
         catch (ThreadInterruptedException) { log.Warn("Hilo ComprobarRaspberry abortado"); }
         catch (Exception) { }
     }
 }