How to publish hex values to the MQTT?

I have a hex string sequence: mySeq = “01fa02” to be published as sequence: 0x01 0xFA 0x02.

I am using Python in the Analysis and I don’t find a solution, please, How do I do it?

Hi Campos Silva,

If you add this code snippet:

byteSeq = bytes.fromhex(mySeq)

for byte in byteSeq:
    print(hex(byte))

You’ll be able to print out each byte in hexadecimal format

Hope this helps!