I want to convert a decimal value stored in a string into a hex value and store it in a byte variable. How can I do that?
eg
std::string DispalyAddress = params.substr(0,2);
The result is 12
.
Now I want to convert 12
into hex ie C and store it in a byte variable. Something like
byte MyAddress = (byte)DispalyAddress.c_str();