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
223 stars 70 forks source link

Improvements to Windows builds #115

Closed tresf closed 2 years ago

tresf commented 3 years ago

Related #93

Unit tests:

mvn clean test exec:java -Dexec.classpathScope="test" -Dexec.mainClass="org.hid4java.examples.UsbHidEnumerationExample"
  Waiting 30s to demonstrate attach/detach handling. Watch for slow response after write if configured.
- Device detached: HidServicesEvent{hidDevice=HidDevice [path=\\?\hid#vid_0eb8&pid_f000#7&3216b6cc&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}, vendorId=0xeb8, productId=0xf000, serialNumber=????????, releaseNumber=0x205, manufacturer=Mettler Toledo, product=PS60    , usagePage=0x8d, usage=0x1, interfaceNumber=-1]}
+ Device attached: HidServicesEvent{hidDevice=HidDevice [path=\\?\hid#vid_0eb8&pid_f000#7&3216b6cc&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}, vendorId=0xeb8, productId=0xf000, serialNumber=????????, releaseNumber=0x205, manufacturer=Mettler Toledo, product=PS60    , usagePage=0x8d, usage=0x1, interfaceNumber=-1]}
  Triggering shutdown...
gary-rowe commented 2 years ago

Merged - thanks Tres!