Skip to content

Reference of Serial.availableForWrite() does not state what returned value is nor where to find out. #855

Open
@brewmanz

Description

@brewmanz

https://www.arduino.cc/reference/en/language/functions/communication/serial/availableforwrite/ does not tell the user about the returned value:

  • What its datatype is (signed or not, whether 8 or 16 or ... bits)
  • Where to find out this information

I want to check that there is enough space for non-blocking writes; and so what type/size of variable do I need to use?
For i have an Arduino chip of very little brain, and long words or other datatypes bother me^.
Yes, I've since discovered that it's an int, but why not just tell people without making them search the source?

^ Apologies to A. A. Milne

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