Arduino Function: Console.available

Description

This function is used to read incoming data from the console connection. read() inherits from the Stream utility class.

Syntax

Console.read()

Returns

 This function returns an int as follows: the first byte of incoming data available -1 if no data is available


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