protected bool GPRSConnect() { if (!GPRS.IsUse) { return(true); } bool ret = GPRS.CreateConnection(3, serverIP, serverPort); if (ret) { Log.Info("GPRS连接成功!"); } else { Log.Info("GPRS连接失败!"); } return(ret); }
protected bool GPRSConnect() { if (!GPRS.IsUse) { return(true); } bool ret = GPRS.CreateConnection(3, Global.gConfig.TransConfig.HostIP, Int32.Parse(Global.gConfig.TransConfig.HostPort)); if (ret) { AppLog.Write("GPRS连接成功!", AppLog.LogMessageType.Info); } else { AppLog.Write("GPRS连接失败!", AppLog.LogMessageType.Info); } return(ret); }