I am trying to send APDU’s with the values: 31 84 A5
Here is a sample of my code below:
Code: Select all
private void SendData(APDU apdu) 
   {
      byte [] buffer = apdu.getBuffer();
      byte sendBytes[] = {0x31, 0x84, 0xA5};
      short len = (short) sendBytes.length;
      Util.arrayCopyNonAtomic(sendBytes, (short)0, buffer, (short)0, (short)len);
      apdu.setOutgoing();
      apdu.setOutgoingLength(len);
     apdu.sendBytes((short) 0, (short)len);
   }	
}
found : int
required: byte
byte sendBytes[] = {0x31, 0x84, 0xA5};
^
2 errors
I know that the bytes ‘84’ and ‘A5’ are Int variables
How do I send Int variables and bytes together?
The output data I am looking for is: 31 84 A5
A sample of the script would be greatly appreciated as well as an explanation.
Thanks in advance!!!


