# available in arduboy_rust::serial_print - Rust
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).

# Function arduboy_rust::serial_print::available

source ·

    pub fn available() -> i16

Expand description

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).

#### Example

    if (Serial::available() > 0) {
        // read the incoming byte:
        incomingByte = Serial::read();

        // say what you got:
        Serial::print("I received: ");
        Serial::println(incomingByte);
    }