Skip to content

Reference pages for Serial.write and Serial.print: incorrect return types ? #6659

Closed
@sterretje

Description

@sterretje

Again not sure if this is in the correct section.

https://www.arduino.cc/en/Serial/Write

Returns
byte
write() will return the number of bytes written, though reading that number is optional

write returns size_t, not byte

https://www.arduino.cc/en/Serial/Print

Returns
size_t (long): print() returns the number of bytes written, though reading that number is optional

To my knowledge, size_t on most (or all ??) Arduinos is an int

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