So I have a string (in a config file), 1234.
I need to post that as two different hex values. x12 and x34.
I honestly can't get how. If I convert the string to hex, I get x0c and x22 - which is not what I want. Now I could store as a string 18,52, but I want the number in the clear.
these two hex values will be going into an existing array, of which I'm currently hacking in in there by:
message += b'\x12'
message += b'\x34'