usb-serial-for-android v2.1.0 Release Notes
Release Date: 2019-11-15 // over 4 years ago-
๐ features:
- ๐ DTR and RTS support for CP21xx drivers
- reimplemented read timeout. caution: too short timeout can cause data loss, see wiki for details
- include proguard rules in .aar library to retain driver classes instantiated by
UsbSerialProber
๐ fixes:
- ๐ improve error handling in
close
and more reliably interruptread
and terminateSerialInputOutputManager
- harmonize + cleanup error messages
- correct
purgeHwBuffers
parameter description - manage USB permission intent in sample app
- โ more code coverage tests
๐ changes:
- ๐ distinguish
IllegalArgumentException
andUnsupportedOperationException
insetParameter
If you had dedicated handling forIllegalArgumentException
, you now have to handle both - 0๏ธโฃ
SerialInputOutputManager
now has infinite read/write timeout per default, to prevent data loss
If you want to useSerialInputOutputManager.writeAsync
you should set a readTimeout!=0 before starting the thread