Beispiel #1
0
 public bool stopWatchDog()
 {
     if ((ConnectStatus & CONNECTTYPE.CONNECTED) == 0)
     {
         return(false);
     }
     //已經關閉,直接回傳
     if ((ConnectStatus & CONNECTTYPE.WATCHDOG) == 0)
     {
         return(true);
     }
     try
     {
         _Robot.WatchDogStop();
         //Return value: None
         ConnectStatus &= ~CONNECTTYPE.WATCHDOG;
         return(true);
     }
     catch (TsRemoteSException ex)
     {
         //Error processing
         Console.WriteLine("stopWatchDog: " + ex.Message);
     }
     return(false);
 }