Lesson 16 – Arduino C;C++ Serial Available Function

Опубликовано: 23 Февраль 2026
на канале: CodingScientist
612
13

In this lesson I will show you how Serial.Available works. The Serial.available( ) function in Arduino gets the stored bytes from the serial port that are available for reading. It is the data, which is already stored and arrived in the serial buffer. The serial buffer in Arduino holds the 64 bytes.
Serial.available( ) function inherits from the utility class called stream. The stream is only invoked when the function relying on it is called. The stream class is considered as the base class for binary and character-based streams.