Input Hexadecimal Numbers to Serial Monitor

Hello Everyone,

I trying to input a hex value into the arduino serial monitor and use that value in my program.

The issue I am having is that I can't find a way to parse that input and keep it as a hex value. parseInt() doesn't seem to work, I have managed to turn the input to a string using Serial.readStringUntil('\n'), but I don't know what to do from here.

Does anyone have any advise or suggestions.

Thank you,

How are you trying to enter it? 0x##, x##, just ##, something else?

Googling "C parse hex value" found this for me ?

...R