Closed cracktichi closed 1 year ago
If you need data from HID device, you can implement this via int read(byte[] data)
when your target device is attached and open
Given that this has gone quiet I'll mark it as closed. Thank you @permiakover for providing some help here.
Hello all,
I want to get data from HID device so i used event hidDataReceived from class https://github.com/gary-rowe/hid4java/blob/develop/src/main/java/org/hid4java/HidServicesListener.java. But when i build this lib from this github (Not using veriosn 0.7.0 from Maven because it dont have above event), hidDataReceived not working on both Window 11 x64 and Linux x64(Raspberrypi 4). I'm tested device on Linux and other event working perfect(hidDeviceAttached, hidDeviceDetached). I'm checked comunicate of HID device (Barcode scanner) on Linux at path dev/input/by-id and i had received data from device. So make sure this is not device issue. Below is my implement:
Could you please help me this issue. Thank you in advance.