Example #1
0
        internal bool SendATCommand(ATCommand atCommand)
        {
            try
            {
                queuedLockSendATCommand.Enter();

                List <bool> results = new List <bool>();
                foreach (ATCommand _atCommand in GetATCommands(atCommand))
                {
                    bool result = _SendATCommand(_atCommand);
                    if (!result)
                    {
                        return(false);
                    }
                }
                return(true);
            }
            finally
            {
                queuedLockSendATCommand.Exit();
            }
        }
Example #2
0
 internal bool RebootModem()
 {
     return(SendATCommand(ATCommand.ATResetModem()));
 }
Example #3
0
 internal void PingModem()
 {
     this.IsEnabled = SendATCommand(ATCommand.Ping());
 }
Example #4
0
 public override bool SendMessage(Notice notice)
 {
     //string UTF16Message = RussiaLanguage.ConvertRusToUCS2(notice.Message);
     return(SendATCommand(ATCommand.SMSMessage(notice.Contact.PhoneNumber, notice.Message, this.WaitForATCommand, this.TimesToRepeatATCommand)));
 }