Hex string to ASCII
807580Sep 24 2009 — edited Sep 28 2009I have a hex string...
String commandOff = "02 62 11 3F FE 05 11 00";
I'm trying to convert this string to ASCII to send via telnet to an Insteon device. I thought I could do...
int bytes = Integer.parseInt(commandOff.replace(" ", ""), 16);
to conver to ASCII but I get a number format exception. How can I convert this hes string to ASCII?
Any help is appreciated.