[fpc-pascal] Using Serial in a TCP/RS232 gateway, how to set buffer sizes?

José Mejuto joshyfun at gmail.com
Thu Sep 7 01:54:18 CEST 2017


El 06/09/2017 a las 21:22, Bo Berglund escribió:
>            Inc(RxTcp, Length(Buf));
>            SerWrite(FComH, Buf[0], Length(Buf));
>            Inc(TxSer, Length(Buf));
> Where could I be losing incoming serial data?

Hello,

Where do you check that "Length(Buf)" has been sent ?

if SerWrite(FComH, Buf[0], Length(Buf))<>Length(Buf) then Raise 
Exception.Create("KBOOM");

-- 




More information about the fpc-pascal mailing list