예제 #1
0
        public bool Conectarse()
        {
            bool retValue = false;

            try
            {
                _puertos = clsSMS.GetPortNameValues();
                foreach (String puerto in _puertos)
                {
                    clsSMS LineaAux = new clsSMS();
                    if (_clsSms.TryOpenPort(puerto, 230400, 8, 300, 300))
                    {
                        _clsSms.ReadIMEI();
                        _clsSms.ReadSIMID();
                        retValue = true;
                    }
                }
            }
            catch (Exception ex)
            {
                throw new CustomizedException(string.Format("Fallo en {0} - EnviarMail()", ClassName),
                                                        ex, enuExceptionType.Exception);
            }

            return (retValue);
        }
예제 #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public EDUARSMS()
 {
     _clsSms = new SMSapplication.clsSMS();
 }