IR control of 2 different devices

Using tags at tools bar " < code > ", post your atual code.

Also post the link to the IRremote library you are using.

PS:
Read tópic Sending IR codes ---> Send pin
" GitHub - Arduino-IRremote/Arduino-IRremote: Infrared remote library for Arduino: send and receive infrared signals with multiple protocols