readBytes() read characters from a stream into a buffer. The function terminates if the determined length has been read, or it times out.
// PROTOTYPE size_t readBytes( char *buffer, size_t length); // SYNTAX stream.readBytes(buffer, length);
- stream : an instance of a class that inherits from Stream
- buffer : pointer to the buffer to store the bytes in (char *)
- length : the number of bytes to read (size_t)
Returns: returns the number of characters placed in the buffer (0 means no valid data found)