We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi..
are this library can read specific length like on C programming: byte[] readBuffer = serial.read(5); //to read only 5 bytes in C
Regards, TJ.
The text was updated successfully, but these errors were encountered:
Hi @tjstyle I would do it this way for reading 3 bytes for example:
byte[] buffer = new byte[3]; syncRead(buffer, 0);
Sorry, something went wrong.
Hi @felHR85 Thanks for your suggestion. there are any example for using sync operation for read & write?
Hi @tjstyle This weekend I've added a little example based on the previous one using the synchronous calls. https://github.com/felHR85/UsbSerial/tree/master/examplesync
Hope it helps.
No branches or pull requests
Hi..
are this library can read specific length like on C programming:
byte[] readBuffer = serial.read(5); //to read only 5 bytes in C
Regards,
TJ.
The text was updated successfully, but these errors were encountered: