The typical method is to receive until a timeout occurs, then get the buffer contents.
If
there is no time out between the 0xAA...message here...0xAA frames then you will have
to
parse the retrieved buffer and extract the individual messages.
Michael McFarland wrote:
> I want to receive a message of variable length which is encapsulated in
> 0xAA bytes. Here's my current method, which repeatedly calls SerReceive
> asking for 1 character. Is there a better/more efficient way? (I'm
> guessing there probably is)
>
> Michael
> .. code deleted...
--
--------------------------------
Rob Antonishen
FFAAT Software
Toronto, ON, Canada
--------------------------------