xbee read and write on arduino pro

So I can recieve serial data from Arduino via xBee like so:

void loop()

{

Serial.println(“N”);

delay(1000);

}

However I can’t receive data when doing this:

void loop()

{

if (Serial.available() > 1)

{

a = Serial.read();

delay (1000);

Serial.print(a, BYTE);

}

}

Its definitely showing that the xbee shield is recieving my commands from my pc (via processing → usb explorer ). Maybe its not making it to my UART?

Try to avoid the delay() (which is always a good habit) and then try again. How did you define and initialize “a”?

markfun

Is the Explorer board one with the infamous bug: diode in series with the data?