Al 20/03/11 19:47, En/na johnelee1...@googlemail.com ha escrit:
> Paul and other responders, thanks. Think I'm a bit clearer how to do it now.
> 
> q1) My com device is an energy monitor that sends a block of xml data, 1000 
> bytes or so, every 6 secs. Guess this means I might be better 'using getbuf 
> or whatever it's called in synaser, rather than single char at a time? Any 
> examples of using this welcome.

If each line of xml has a terminator (say, crlf), you can use RecvTerminated
to read line by line.
Or, you can use RecvBufferEx, RecvBufferString, RecvPacket.
All methods are documented in synaser source.

> 
> q2) does synaser work on win98/me?

No idea. I works under xp.

Bye
-- 
Luca
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to