Arduino Programming Language: Stream.available

Name

available()

Description

Gets the number of bytes available in the stream. This is only for bytes that have already arrived.

Syntax

stream.available()

Parameters

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

Returns

 int: the number of the bytes available to read


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