Closed ghost closed 3 months ago
Describe the bug The HID device attaches and opens successfully. But the following code always fails and returns -1:
private static final byte[] message; static { message = new byte[] { 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, (byte) 0xff, (byte) 0x80, 0x00, 0x67, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; } int bytesWritten = hidDevice.write( message, 16, 0);
To Reproduce Steps to reproduce the behavior:
Expected behavior The number of bytes send successfully (17) should be returned.
Can you try this code on your devices with the latest build from develop - it may have resolved the issue.
develop
Closing due to inactivity
Describe the bug The HID device attaches and opens successfully. But the following code always fails and returns -1:
private static final byte[] message; static { message = new byte[] { 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, (byte) 0xff, (byte) 0x80, 0x00, 0x67, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; } int bytesWritten = hidDevice.write( message, 16, 0);
To Reproduce Steps to reproduce the behavior:
Expected behavior The number of bytes send successfully (17) should be returned.