Recently I've been trying to create some kind of simple RC using XBee's.
But I've hit a brick wall.
The problem is, that my sender (controller) sends strings of data, simply using Serial.println("");, which is fine.
But it seems that the data is not send right away. E.x i send 10x "F1" (Forward, speed=1), it doesn't receive 10x "F1", it receives something like: "F\n 1\n F1\n F1\n F1..." and so on.
I could post some code, but it's really just reading from a joystick, and then sending the strings "F1", "B1" and so on.
Anyone got an idea of why this is happening?
Thanks in advance.
The XBee's are of the chip-kind, I really don't know what kind they are, besides that..
Although, I think the code is actually what's messing with me.
I changed a few things in the receiver code, and that seemed to have changed a few things.
Do you have an example of a really simple receiver code? My current one is:
String str = "";
Â
 if(Serial.available() > 1)
 {
  while(Serial.available())
  {
   char c = Serial.read();
   str.concat(c);
  }
 }
 if(str != "" && str != "\n")
 {
  Serial.print("New: ");
  Serial.println(str);
 }
But that still seems to kind of buggy, my output right now from the console is:
I believe this is the one: http://www.let-elektronik.dk/xbee-1mw-chip-antenne.html
The Serial.println is just for debugging purposes. It sends data back, but the 'sender' doesn't read this, so it doesn't matter. It just for me to follow in the console, when testing. And the string isn't getting printed, unless it actually contains something.