Description

available() returns the number of bytes available for retrieval with read(). This function should be called on a controller device after a call to requestFrom(), or on a peripheral inside the onReceive() handler.

This function inherits from the Stream utility class. See the Wire main page for more information.

Syntax

Wire.available()

Parameters

None.

Returns

The number of bytes available for reading, or 0 if none are available. Data type: int.