You are totally confused.
Ascii 'T' is decimal 84, which is Hex 54.
How can we create a function when your specification is screwed up?
Sorry, you are totaly right, i have used wrong number by mistake, but what i really need is a function to convert string that contain HEX
Here is a REAL exemple of a string that i have received from my GSM module (i have put * to mask my phone number):
+CMT: "2B31343530333431********","","15/03/24,11:45:20-16" 48454C4C4F
The last part "48454C4C4F" is "HELLO" so i want a function to convert this code "48454C4C4F" TO "HELLO
something that work like that:
String HEXString ="48454C4C4F";
String ASCIIValue ="";
ASCIIValue = ConvertToASCII(HEXString);
// ASCIIValue now contain HELLO