Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino API extension: Stream::to() #171

Closed
wants to merge 6 commits into from
Closed

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