libserial icon indicating copy to clipboard operation
libserial copied to clipboard

Writing blocks of data

Open dollop80 opened this issue 4 years ago • 1 comments
trafficstars

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?

dollop80 avatar Aug 04 '21 05:08 dollop80

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!

mcsauder avatar Aug 05 '21 00:08 mcsauder