설명
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).
Serial.available()
inherits from the Stream utility class.
문법
Serial.available()
Arduino Mega only:
Serial1.available()
Serial2.available()
Serial3.available()
매개변수
Nothing
반환
The number of bytes available to read .