Convert string as hex to hexadecimal
问题 I have a function that takes an uint64_t variable. Normally I would do this: irsend.sendNEC(result.value); result.value is an uint64_t as hexadecimal (I think). If I do this: String((uint32_t) results.value, HEX) I get this: FF02FD If I do: irsend.sendNEC(0x00FF02FD) it works perfectly and is what I want. Instead of grabbing the result.value , I want to write it as a string (because that's what I get from the GET request). How do I make "FF02FD" into 0x00FF02FD ? EDIT: Maybe this makes it