Reference.StreamReadBytes History

Hide minor edits - Show changes to markup

May 08, 2013, at 06:16 PM by Alberto Cicchi -
Changed lines 7-8 from:

readBytes() returns the number of characters placed in the buffer. A 0 means no valid data was found.

to:

readBytes() returns the number of bytes placed in the buffer. A 0 means no valid data was found.

Changed lines 22-23 from:

byte

to:

The number of bytes placed in the buffer

Deleted line 26:
April 17, 2012, at 10:45 PM by Scott Fitzgerald -
Deleted line 27:
November 26, 2011, at 10:43 PM by David A. Mellis -
Changed lines 13-14 from:

stream.readBytes(length)

to:

stream.readBytes(buffer, length)

Changed lines 18-19 from:

length : the number of bytes to read (int)

to:

buffer: the buffer to store the bytes in (char[] or byte[])
length : the number of bytes to read (int)

November 01, 2011, at 09:22 PM by Scott Fitzgerald -
Changed lines 7-10 from:

readBytes() returns the number of characters placed in the buffer, a 0 means no valid data was found.

This utility function is not publicly available, and is part of the Stream class.

to:

readBytes() returns the number of characters placed in the buffer. A 0 means no valid data was found.

This function is part of the Stream class, and is called by any class that inherits from it (Wire, Serial, etc). See the Stream class main page for more information.

Syntax

stream.readBytes(length)

Parameters

stream : an instance of a class that inherits from Stream.
length : the number of bytes to read (int)

Changed lines 21-23 from:

byte

to:

byte

October 31, 2011, at 03:15 AM by Scott Fitzgerald -
Added lines 1-19:

readBytes()

Description

readBytes() read characters from a stream into a buffer. The function terminates if the determined length has been read, or it times out (see setTimeout()).

readBytes() returns the number of characters placed in the buffer, a 0 means no valid data was found.

This utility function is not publicly available, and is part of the Stream class.

Returns

byte

See also

Reference Home

Share