98
begin
label28.Font.Color := clWindowText;
label28.Caption := 'Contracted';
end
else
begin
label28.Font.Color := clRed;
label28.Caption := 'ERROR';
end;
if copy(hex, 5,1) = '1' then
begin
label27.Font.Color := clWindowText;
label27.Caption := 'Resolved';
end
else
begin
label27.Font.Color := clRed;
label27.Caption := 'ERROR';
end;
label26.Caption := inttostr(BinToInt(copy(hex, 1,4)));
end;
end;
procedure TForm1.rst1Click(Sender: TObject);
begin
rst := 1;
if IdTelnet1.Connected then
begin
IdTelnet1.IOHandler.WriteLn('photo=off');
wait(3000);
application.MessageBox('Photocell turned off','OK',
MB_OK);
IdTelnet1.IOHandler.WriteLn('servo=off');
Comentários a estes Manuais