315 MHz RF transmitting correct code but power outlet won't switch on

All,

I found a similar device at Home Depot from a company called Westek. Model RFK306.

It uses the AUT980202 chip as well and comes in 4 pre-defined channels (A, B, C and D)

I found that I needed to change the .send() method to 17 bits to use a device at address D. I had to shift the magic values in the above code by 2 bits to accommodate the 17 bit transmit. Other than that, the pulse length of 800 etc. worked well.

#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {

Serial.begin(9600);

// Transmitter is connected to Arduino Pin #11  
mySwitch.enableTransmit(11);
mySwitch.setProtocol(2);
mySwitch.setPulseLength(800); 
//     //  ** DO NOT define a Protocol** if u do it will override the setPulseLength of 800
}

int32_t iOn = 53440;
int32_t  iOff = 53280;
int32_t adD = 2;
int32_t adC = 4;
int32_t adB = 8;
int32_t adA = 16;
void loop() {
mySwitch.send(iOn + adD, 17);
delay(2000);  

mySwitch.send(iOff + adD, 17);
delay(2000);
}