2

I'm using the jSSC library to set up a connection via USB port. I used a Windows application Device Monitoring Studio to capture what a certain Windows program sends to a device. Here's screenshot of captured data:

enter image description here

Here's my question: how should I declare the data above in Java? Should it be i.e. an array of bytes:

byte[] bytesToSend = {0x10, 0x00, 0x0b, ....
menteith
  • 596
  • 14
  • 51
  • Have you tried it? Sounds about right to have byte data in a byte array. Would probably read it from a file when it's more than a few bytes. – zapl Nov 17 '17 at 10:00

0 Answers0