[fpc-pascal] One experience with the unit serial
JeLlyFish.software at gmx.net
Thu Nov 19 22:02:31 CET 2009
marcov at stack.nl:
> How do you use it? I'm used to TComport, and it seems that synaser, like
> unit serial, only supports blocking use.
call Connect, call Config, call the appropriate reading and writing subroutines (like SendString and RecvPacket)...
> Do you put it in a thread?
You can, yes.
> I need it for a link that receives and sends at random, not related
You may use RecvPacket with a timout and run a "polling" loop.
Preisknaller: GMX DSL Flatrate für nur 16,99 Euro/mtl.!
More information about the fpc-pascal