|
<< Click to Display Table of Contents >> Navigation: Serial > available() |
Get the number of bytes (characters) available for reading from the serial port. This is data that's already arrived and stored in the serial receive buffer (which holds 64 bytes). available() inherits from the Strerm utility class.
Syntax
Serial.available()
Arduino Mega only:
Serial1.available(1
Serial2.available()
Serial3.available()