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 interrupt read and terminate SerialInputOutputManager
    • harmonize + cleanup error messages
    • correct purgeHwBuffers parameter description
    • manage USB permission intent in sample app
    • โœ… more code coverage tests

    ๐Ÿ”„ changes:

    • ๐Ÿ‘ distinguish IllegalArgumentException and UnsupportedOperationException in setParameter
      If you had dedicated handling for IllegalArgumentException, you now have to handle both
    • 0๏ธโƒฃ SerialInputOutputManager now has infinite read/write timeout per default, to prevent data loss
      If you want to use SerialInputOutputManager.writeAsync you should set a readTimeout!=0 before starting the thread