On Sun, 09 Sep 2018 13:33:22 +0200, Bo Berglund via Lazarus
<lazarus@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

-- 
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to