Yes, there are buffers on both ends of the channel. For efficiency, you
should attempt to read more than one byte at a time and check for many
bytes have actually been read by looking at the return value of read().
Finally, wrap this all in a method for cleanliness.
On Apr 5, 2015 8:58 AM, "Marouane M" <[email protected]> wrote:

> Hi,
>>
>   using this code it worked:
>
> int nbOfBytesRead = 0;
>> while (nbOfBytesRead < imageSize) {
>>               _uartIn.read(bufferData, nbOfBytesRead, 1);
>>                nbOfBytesRead++;
>> }
>>
>> my previous question about a buffer in the ioio stands anyway .
>
> Thanks For your Help Ytai and thank you for the fantastic ioio you built
> and support.
>
> --
> You received this message because you are subscribed to the Google Groups
> "ioio-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/ioio-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to