So I've been working on a little project to control some LED lights that came with an IR remote to turn them on and off and change the colours and what not. I've created an app in visual studio that sends the IR codes over the com port and to the arduino, this part works perfectly. I was initially sending single characters and then using a lot of if statements to check what the character was and had the IR code, hard coded. My girlfriend got some similar lights but a different brand so the IR codes are different. Her remote is a little dodgy so I said I would make her an app like mine so she can control her lights from her computer, but she's all about aesthetic and because my original app was just me using it, it didn't really look too good, but it was functional. So I've recreated the app so she can change how the button's look and change the background etc... and while I was recreating it, I though hey, instead of having a load of if statements in the arduino code, why don't I just send the IR codes over the serial port, and then forward them on. This way, I can use a config file on the computer app and then change the codes in there and other people would be able to use it without having to rewrite parts.
But the problem I'm having is that I'm using the library IRremote, made by shirrif and when I try to store the Serial.readString as a variable and then pipe it to the IR LED, it pops up with an error saying that it can't use strings with the IRsend.NEC(string, int).
So I was hoping if any one has any simple and easy to follow solutions to this? If any one needs to see my arduino code, I can post it, I just didnt want this to be a wall of text.