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); }
/// <summary> /// Constructor. /// </summary> public EDUARSMS() { _clsSms = new SMSapplication.clsSMS(); }