How to make header in BCD rather than HEX?
val isoRequest: IsoMessage = msgFactory.newMessage(0x800)
isoRequest.isoHeader = "6003000000"
log(isoRequest.writeData().bytesToHex())
Currently the above code will generate
363030333030303030300800
What we need is something like this
60030000000800
You probably need
isoRequest.setBinaryIsoHeadere.g. (code in java):
The string version sets the ASCII representation of the string characters.
You can also get the byte array from a hex string in kotlin using this answer: https://stackoverflow.com/a/76830156/3444205