Closed athusrv closed 4 years ago
I'm trying to communicate with a hid device. The command that I want to send is this array:
[0x80, 0x06, 0x03, 0x03, 0x51, 0x31, 0x00, 0x27]
However, the value 0x80 is out the range of the byte type.
How can I send this array to the device?
This is the code I'm trying to execute:
byte message[] = new byte[] {0x80, 0x06, 0x03, 0x03, 0x51, 0x31, 0x00, 0x27}; int length = device.write(message, message.length, (byte) 0x00);
Apologies for the slow response. You might have to represent the 0x80 value as follows:
0x80
[(byte)0x80, 0x06, 0x03, 0x03, 0x51, 0x31, 0x00, 0x27]
Given that this is an old support request, I'll close it now.
I'm trying to communicate with a hid device. The command that I want to send is this array:
[0x80, 0x06, 0x03, 0x03, 0x51, 0x31, 0x00, 0x27]
However, the value 0x80 is out the range of the byte type.
How can I send this array to the device?
This is the code I'm trying to execute: