예제 #1
0
        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);
        }
예제 #2
0
        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);
        }