I have to send a byte array of hexadecimal integers to a BLE devise. Whenever I try to use 0x notation the internal value stored in the byte array is getting converted to a decimal value.
var foo : [Byte] = [0xff, 0xD9] is actually stored as [255, 217]
What data structure should I be using to make it stay in hex format ?