How to convert char to hex stored in uint8_t form?
问题 Suppose I have these variables, const uint8_t ndef_default_msg[33] = { 0xd1, 0x02, 0x1c, 0x53, 0x70, 0x91, 0x01, 0x09, 0x54, 0x02, 0x65, 0x6e, 0x4c, 0x69, 0x62, 0x6e, 0x66, 0x63, 0x51, 0x01, 0x0b, 0x55, 0x03, 0x6c, 0x69, 0x62, 0x6e, 0x66, 0x63, 0x2e, 0x6f, 0x72, 0x67 }; uint8_t *ndef_msg; char *ndef_input = NULL; How can I convert ndef_input (which is just a plain text, like "hello") to hex and save into ndef_msg ? As you can see ndef_default_msg is in hex form. Data inside ndef_msg should be