I'm using the standard software serial example, changed the pins to reflect the ones in use, and set the serial speed to 9600. When the receiver xbee gets data, it prints to the console, but only in weird characters. Am I supposed to do something to get readable data? I get the same results when hooking the xbee up directly to the computer and reading the data from the COM port.
#include <SoftwareSerial.h>
SoftwareSerial mySerial(0, 1); // RX, TX
void setup()
{
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}
Serial.println("Goodnight moon!");
// set the data rate for the SoftwareSerial port
mySerial.begin(9600);
mySerial.println("Hello, world?");
}
void loop() // run over and over
{
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
mySerial.write(Serial.read());
}