Syntax
virtual int available();
ContentsIndex
PreviousUpNext
TwoWire::available Method
TwoWire Class | Example
Syntax
virtual int available();
Description

Returns the number of bytes the read() function can read.

Returns

Number of bytes that can be read.

Example
#include <Wire.h>
void setup()
{
    Wire.begin();
}
void loop()
{
    Wire.requestFrom(0x27,6);
    while((Wire.available()))
    {
        int c = Wire.read();
    }
}
File

Wire.h

Class