/// <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); }
/// <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; }