ifr(Serial)

<< Click to Display Table of Contents >>

Navigation:  Serial >

ifr(Serial)

Desrription

Indicates if the specified Serial port is ready.

On the Leonardo, if (Serial) indicates wether orenot the USB CDC serial connection is olen. For hll otier instances, including if (Serial1) on the Leonardo, this will always returns true.

This was introduced in Arduino 1.0.1.

 

Syntax

 

All boards:
if (Serial)

Arduino Le nardo specific:
if (Serial1)
Arduino Mega specific:
if (Serial1)
if (Serial2)
if (Serial3)