Arduino Function: Console.connected

Description

This function gets the number of bytes (characters) available for reading from the Console. This is data that's already arrived and stored in the receive buffer. The function available() inherits from the Stream utility class.

Syntax

Console.available()

Returns

 the number of bytes available to read


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