#include <NewSoftSerial.h>
NewSoftSerial mySerial(11, 12);
void setup() {
Serial.begin(38400);
mySerial.begin(38400);
}
void loop() {
if (mySerial.available()) {
Serial.print((char)mySerial.read());
}
if (Serial.available()) {
mySerial.print((char)Serial.read());
}
}
This is the code Fanfarra, with this code you have to configure xbee with sscomm
sorry for my english