Exemple #1
0
 private bool SetupConnection()
 {
     if (Connection == null)
     {
         Connection = RobotRequest.Conn;
         //Connection = new WirelessConnection();
         //return (Connection.ConfigAndConnectSocket() == 1);
     }
     return(true);
 }
Exemple #2
0
 /// <summary>
 /// Setup wireless connection
 /// </summary>
 /// <returns>true if success and false if failed</returns>
 private bool SetupConnection()
 {
     if (Conn == null)
     {
         Conn = new WirelessConnection();
         return(Conn.ConfigAndConnectSocket() == 1);
     }
     if (!Conn.SocketAlive)
     {
         return(Conn.ConfigAndConnectSocket() == 1);
     }
     return(true);
 }
 private bool SetupConnection()
 {
     if (Connection==null)
     {
         Connection = RobotRequest.Conn;
         //Connection = new WirelessConnection();
         //return (Connection.ConfigAndConnectSocket() == 1);
     }
     return true;
 }
Exemple #4
0
 /// <summary>
 /// Setup wireless connection
 /// </summary>
 /// <returns>true if success and false if failed</returns>
 private bool SetupConnection()
 {
     if (Conn == null)
     {
         Conn = new WirelessConnection();
         return (Conn.ConfigAndConnectSocket() == 1);
     }
     if (!Conn.SocketAlive)
     {
         return (Conn.ConfigAndConnectSocket() == 1);
     }
     return true;
 }