Hello everyone , i configure my both Xbee S1 and wrote a simply programm where when i send "12" via X-TCU i turn off a LED on my arduino. I send with X-TCU terminal the "0C" hex value and the LED is turn off. So seems i set correct the Xbee.
Now when i try to communicate Arduino-Xbee --> Arduino-Xbee seems like nothing is working
Thats the 2 programms
Send program:
//int const ledpin = 13;
void setup()
{
 //pinMode(ledpin, OUTPUT);
Serial.begin(9600);
}
void loop()
{
delay(3000);Â Â Â Â Â //delay 3sec
int val = 12;Â Â Â Â Â Â Â
Serial.print(val);Â Â // send 12
for(;;) ;Â //stay here
}
And recieve programm:
int const ledpin = 13;
void setup()
{
 pinMode(ledpin, OUTPUT);
Serial.begin(9600);
digitalWrite(ledpin, HIGH);
}
void loop()
{
Â
  if(Serial.available() > 0)
  {
  Â
    int myData = Serial.read();
   Â
    if(myData == 12)
    {
    digitalWrite(ledpin, LOW);
    }
   }
}
LED on recieve programm its always ON, like the dont get the value or get it wrong.
I'll be pleased if someone can help