protected bool RunSingleRunnableCommand(IRunnableComand aCommand) { try { //_communicatorInstance.ReadTimeout = 2000; _communicatorInstance.FlushBuffer(); _communicatorInstance.WriteLine(aCommand.RunCommand()); string zAnswerLine = ""; while (!BaseATCommand.CheckCommandAnswer(zAnswerLine)) { zAnswerLine = _communicatorInstance.ReadLine(); } _logger.Debug("Correct Answer received OK"); return(BaseATCommand.PositiveAnswer(zAnswerLine)); } catch (Exception zException) { _logger.WarnException("Failed Single command run", zException); return(false); } }
protected bool RunSingleRunnableCommand(IRunnableComand aCommand) { try { //_communicatorInstance.ReadTimeout = 2000; _communicatorInstance.FlushBuffer(); _communicatorInstance.WriteLine(aCommand.RunCommand()); string zAnswerLine = ""; while (!BaseATCommand.CheckCommandAnswer(zAnswerLine)) { zAnswerLine = _communicatorInstance.ReadLine(); } _logger.Debug("Correct Answer received OK"); return BaseATCommand.PositiveAnswer(zAnswerLine); } catch (Exception zException) { _logger.WarnException("Failed Single command run", zException); return false; } }