I am working on a wireless IR Remote solution.
I am sending the IR HEX Code using wireless communication. That involves in my case converting the HEX value 0xFFFFFFFF to a string.
On the remove Arduino I need to convert the value back to a Unsigned Long value for it to be usable to the IRRemote library.
How can I do this. I have tried the following demonstration code, but it is not working.
//IR CODE Serial.println("Sending Command"); String strCode = "E13EF30C"; Serial.print("Converting String: "); Serial.println(strCode); unsigned long tmpCode = strCode.toInt(); Serial.print("Converted Code: "); Serial.println(tmpCode, HEX); irsend.sendNEC(tmpCode, 32); delay(1000); //5 second delay between each signal burst Serial.println("Sending Command"); irsend.sendNEC(tmpCode, 32); delay(5000); //5 second delay between each signal burst
I hope someone can help me.