felHR85 / UsbSerial

Usb serial controller for Android
MIT License
1.8k stars 585 forks source link

Add new read() method that sets read buffer size #271

Open tihomirleka opened 5 years ago

tihomirleka commented 5 years ago

New read(UsbReadCallback, int) method added that takes additional parameter which defines size of the read buffer when communicating asynchronously.

felHR85 commented 5 years ago

@tihomirleka Thanks for the PR. I will check it out as soon as possible

subvertallchris commented 3 years ago

Think this could be merged and released if it looks good? The 16kb buffer size with callbacks is a showstopper for me. If this isn't releasable, is there a workaround to change the size of the buffer once the callback is set? I looked but didn't see anything.