I'm currently working on a project, basically it is and arduino connected with a esp-8266 to receive command over tcp and then use it to send code with and IR Led. I'll use it as an universal remote for all my devices.
For now I got everything working. On boot in my setup, I send command over serial to my esp-8266 to connect to a wifi and open a tcp server to receive command, then in my loop, when I received something on my Esp-8266 it send it to my Arduino. I'll already have a proccess command sketch that I can use to receive one char command with one or multiple arguments.
But Now I want to make the main sketch the easier to do and modify when I'll add different remote. I'm looking to build a table to match an argument to a Ir code output, so I won't have to make a different case for each possible buttons.
Any suggestion is welcome, thank you guys