Skip to content

v0.1.4

Choose a tag to compare

@MagicalTux MagicalTux released this 24 Sep 22:06
· 6 commits to master since this release
4cad1ad

Other

  • Add Device::serial_number and lookup by vid/pid list + serial

Added

  • Device::serial_number returns the serial number without opening the
    device: from sysfs on Linux, the IOKit registry on macOS, and the parent
    hub on Windows (so it works whatever driver the device is bound to).
  • Context::find_device_by_serial and Context::open_device_by_serial
    locate a device by serial number among a list of vendor/product pairs.