Arduino Programming Language: Stream.read

Name

read()

Description

Reads characters from an incoming stream to the buffer.

Syntax

stream.read()

Parameters

  • stream : an instance of a class that inherits from Stream.

Returns

mixed : the first byte of incoming data available (or -1 if no data is available)


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc