private bool SetupConnection() { if (Connection == null) { Connection = RobotRequest.Conn; //Connection = new WirelessConnection(); //return (Connection.ConfigAndConnectSocket() == 1); } return(true); }
/// <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; }
/// <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; }