[REBOL] Re: How-to use Serial Port
From: santilli:gabriele:g:mail at: 9-Oct-2010 18:49
On Sat, Oct 9, 2010 at 5:41 PM, zokie.ml-libero.it <zokie.ml-libero.it> wrote:
> serial-port: open/lines/direct/no-wait serial://port1/9600/8/none/1
I suspect the /LINES/DIRECT/NO-WAIT combination does not work as you
would expect. It does not really wait for the end of the line to
return something.
It's probably better to avoid /LINES in this case and look out for the
newline character yourself. (You copy from the port, and append to a
buffer; then search for the newline char in the buffer and if there is
one grab the line.)
Maybe this could be reported as a bug (it would be nice if it worked
how you were expecting it to)... but, I don't think you'd want to wait
for a R2 update. :-)