gary-rowe / hid4java

A cross-platform Java Native Access (JNA) wrapper for the libusb/hidapi library. Works out of the box on Windows/Mac/Linux.
MIT License
229 stars 71 forks source link

Modify HidDevice.getId() to return only the OS-specific path #8

Closed gary-rowe closed 9 years ago

gary-rowe commented 9 years ago

There are significant differences between operating systems in populating the vendor, product and serial number fields leading to an inconsistent identifier. The path is consistent across all and is therefore a better choice.

gary-rowe commented 9 years ago

Device ID now uses path leading to greater compatibility across platforms.