Модуль "Информация АТ" (часть 5) - getIMEI

Рубрика: Исходники
Среда, 21 апреля 2010 г.
Просмотров: 125
последняя версия: 3.0.9 build 961 beta
от 07 декабря 2007 г.
function TfrmAT_Info.getIMEI: string;
var
  str: string;
begin
  result:= '';
  if not Form1.IsATConnected then exit;
  str:= SendATCommand('AT+CGSN');
  if (str<>'') and xComPort.ATResult
    then begin
         ExtractStr(str, 'IMEI');
         str:= ExtractStr(str, #13);
         RzRichEdit1.SelAttributes.Color:= clBlue;
         RzRichEdit1.SelAttributes.Style:= [fsBold];
         RzRichEdit1.Lines.Add(#9 + 'IMEI: ');
         RzRichEdit1.SelAttributes.Color:= clBlack;
         RzRichEdit1.SelAttributes.Style:= [];
         RzRichEdit1.Lines.Add(#9 + str+#13#10);
       end;
end;
Rambler's Top100