1

I want to convert a hexadecimal string or an array of bytes to binary data. For example, if i have a string like '424D368403' my output should be like b'BM6\x84\x03' The python code binascii.unhexlify('424D368403') gives the correct output. But, I want to do this in arduino code. Can someone help me in creating an arduino code / command in getting desired output?

2
  • arduino.stackexchange.com/a/77974/4143
    – Majenko
    Sep 14, 2020 at 10:05
  • 1
    @Majenko, even if the answer is almost the same, the questions are different. but this question is better. maybe adapt the answer here?
    – Juraj
    Sep 14, 2020 at 18:29

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.