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

Writing blocks of data #177

Open
dollop80 opened this issue Aug 4, 2021 · 1 comment
Open

Writing blocks of data #177

dollop80 opened this issue Aug 4, 2021 · 1 comment

Comments

@dollop80
Copy link

dollop80 commented Aug 4, 2021

Hi,
The documentation states that there is a possibility to send a data buffer with a predefined length https://libserial.readthedocs.io/en/latest/tutorial.html#writing-blocks-of-data
But seems that this is not implemented because there is no function Write, that conforms Write( output_buffer, BUFFER_SIZE );
So is there a way to switch the library to binary mode anyway? To send, f.e. a 0x00 byte?

@mcsauder
Copy link
Collaborator

mcsauder commented Aug 5, 2021

Hi @dollop80 , nice catch! It indeed looks like this can only be accomplished through a SerialStream object at present. Would you be interested in submitting a PR?

Thanks for submitting the issue!

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

No branches or pull requests

2 participants