I have two xbees up, configured, and communicating (Coordinator API & Router AT). I can send hex commands using x-ctu without issue. I'm also trying to keep this sketch very light, so I want to write my own, thin packet processing.
What am I doing wrong? This does not work; I get no response.
byte turnondata[] = { 0x7E, 0x00, 0x10, 0x17, 0x05, 0x00, 0x13, 0xA2, 0x00, 0x40, 0x7E, 0x71, 0x53, 0xFF, 0xFE, 0x02, 0x44, 0x32, 0x05, 0x32 };
byte turnoffdata[] = { 0x7E, 0x00, 0x10, 0x17, 0x05, 0x00, 0x13, 0xA2, 0x00, 0x40, 0x7E, 0x71, 0x53, 0xFF, 0xFE, 0x02, 0x44, 0x32, 0x04, 0x33 };
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.write(turnondata, sizeof(turnondata));
delay(5000);
Serial.write(turnoffdata, sizeof(turnoffdata));
delay(5000);
}
Any assistance is appreciated!
Thanks!