Skip to content

Documentation for Wire.requestFrom incorrect. The function returns a value. #1322

@nickgammon

Description

@nickgammon

The documentation for Wire.requestFrom states that the function returns "none", as documented here:

http://arduino.cc/en/Reference/WireRequestFrom

However in fact it returns the number of bytes obtained from the slave:

uint8_t TwoWire::requestFrom(uint8_t address, uint8_t quantity, uint8_t sendStop)

Please correct the web page to avoid further confusion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions