Dear Antico Porco,
Many thanks for updating this essential package, which should be part of the standard Lazarus distribution.
I used the original spdoserial code, with some difficulty.
However, using your ReadData function, lines greater than 64 characters have a CR/CRLF inserted, which corrupts my incoming packets.
--------------------------------
($.A539738020202020000FC1800009C40ED44C7CE257812BD3B0002010100098
DF237)
--------------------------------
I have added the RecvTerminated function into your LazSerial.pas file, from the original sdposerial.pas.
---------------------------------------
function TLazSerial.RecvTerminated(timeout: integer; const EndTerm: ansistring): string;
begin
result:='';
if FSynSer.Handle=INVALID_HANDLE_VALUE then
ComException('can not read from a closed port.');
result:=FSynSer.RecvTerminated(timeout,EndTerm);
end;
---------------------------------------
This now works beautifully; would you consider adding this function into your release package please?
Thanks again for your efforts.
Migrant