[Lazarus] Serial communication??
Roberto Padovani
padovani.r at gmail.com
Wed Sep 29 09:21:12 CEST 2010
2010/9/28 Bo Berglund <bo.berglund at gmail.com>:
>
> Since I am used to having event driven serial communication my question
> is really twofold:
>
> 1) Is serial communication with events not possible in FPC on Linux?
>
> 2) How can one use blocking reads when there is no way to know exactly when
> data will arrive? Everything else will stop when waiting for data, right?
>
Hi,
I use threaded and event-driven serial port communication all day with
FPC and I did not have to write anything.
Have a look at the great CPortLaz library
http://sourceforge.net/projects/cportlaz/
It also has a few lazarus components, but I easily removed them from
the source code to make it a FPC-only library.
Cheers,
Roberto
More information about the Lazarus
mailing list