[Lazarus] Usage of Serial in a testing program?
Bo Berglund
bo.berglund at gmail.com
Sun Sep 9 16:26:29 CEST 2018
On Sun, 09 Sep 2018 13:33:22 +0200, Bo Berglund via Lazarus
<lazarus at lists.lazarus-ide.org> wrote:
>3) Receiving data
>----------------
I forgot to add a question about read timeouts...
4) Read timeout
---------------
When running this to read incoming data:
status:= SerRead(serialhandle, s[1], 10);
How can I get out of the call if there never arrives 10 bytes? Is
there a timeout somewhere so that I can set it to some small value and
put the SerRead into a thread that can check arriving data and if
found fire off an event or such?
--
Bo Berglund
Developer in Sweden
More information about the Lazarus
mailing list