Skip to main content
AMard.1510
Associate
November 22, 2019
Question

Hex to Char without change!

  • November 22, 2019
  • 1 reply
  • 610 views

Hi every body!

How Can I convert byteArray[] (in hex format) to data[] (in char format):

uint8_t byteArray[] = { 0x4D, 0x04, 0x01, 0x18, 0x05, 0x05, 0x0C, 0x0E, 0x0C, 0x05, 0x0F };

char data[] = "4D04011805050C0E0C050F";

Thank you!

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    November 22, 2019

    Work through the array with itoa() ?

    #LearnToCode

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..