Skip to content

Conversation

@d-a-v
Copy link
Contributor

@d-a-v d-a-v commented Aug 3, 2020

An Arduino API extension in progress imports Client::read(buffer) definition to Stream::read(buffer).
This method returns an int.

Other classes inheriting from Stream:: which implement the same (non-virtual) function return a size_t (HardwareSerial, SoftwareSerial, FS). The function now exists, is virtual, and is an attempt to make the API coherent and able to implement Stream::to*() functions. With more helpers in SoftwareSerial, buffers could be transferred using less copies / less intermediate buffers and less code.

These helpers could be added in SoftwareSerial too in a separate PR.

This is related to esp8266/Arduino#6979 and specifically esp8266/Arduino@cdd72f9

@dok-net dok-net closed this in d20322a Jan 25, 2021
dok-net added a commit to dok-net/espsoftwareserial that referenced this pull request Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant