On 26/07/16 13:58, James Richters wrote:
but I don’t want it to get stuck in an endless loop which could happen if:
A: nothing is ever received
B: garbage is being received due to bad connection or baudrate
mismatch.. etc..
Look at synaser, its TBlockSerial class has a RecvTerminated method that
does just that.
http://synapse.ararat.cz/doc/help/synaser.TBlockSerial.html#RecvTerminated
https://sourceforge.net/p/synalist/code/HEAD/tree/trunk/
Bye
--
Luca
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal