Skip to content

Adds functionality allowing size of HardwareSerial's RX buffer to be changed at runtime. #1855

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

Merged
merged 1 commit into from
Sep 17, 2018

Conversation

coddingtonbear
Copy link
Contributor

This adds functionality analogous to the ESP8266's Arduino core's HardwareSerial::setRxBufferSize, providing users functionality allowing them to increase the size of the rx buffer as a way of preventing lost characters when using high baud rates. Given that the queue size is only 256 characters by default, it is terribly easy for fast serial connections to exceed the default buffer length.

@coddingtonbear coddingtonbear changed the title Add functionality allowing rx buffer of HardwareSerial to be changed at runtime. Adds functionality allowing size of HardwareSerial's RX buffer to be changed at runtime. Sep 11, 2018
@me-no-dev
Copy link
Member

Hey :) I will merge this but I am thinking of reworking those buffers to be able to hold way more than a K of data.

@me-no-dev me-no-dev merged commit ce61074 into espressif:master Sep 17, 2018
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.

2 participants