Can't send hex code Infrared signals.

I am trying to send toggle power command to my xbox and have not had any success. I have tried Ken Shirrif’s code @ ( ) as well and still same thing. I am able however to connect my IR LED to pin 13 and send pulses with delays to control stuff just fine. This just takes way too long. I know in <IRremote.h> that my IR LED has to be on pin 3. I have tried several variations of connecting my LED to pin 3 and not sure on correct way of doing so or the resistor configuration. Each way I have tried seems as if it isn’t pulsing as well as when I use pin 13. I have found several websites that include RC6 signals and how to send. I have been racking my brain now for three days. What am I doing wrong?

#include <IRremote.h>
IRsend irsend;
unsigned long long OnOff = 0xc800f740cLL;
int toggle = 0;

void sendOnOff() {
if (toggle == 0) {
irsend.sendRC6(OnOff, 36);
} else {
irsend.sendRC6(OnOff ^ 0x8000, 36);
toggle = 1 - toggle;

void setup() {}

void loop() {
delay(10000); // Wait 10 seconds
sendOnOff(); // Send power signal