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 Commented 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? Commented Sep 14, 2020 at 18:29

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.