I have two Xbees, each connected to an Arduino Uno. The problem is that whenever I switch the sender on, the receiver is receiving "224" (or if I used a char variable, "à") no matter what the sender is printing.
Receiver code:
void setup () {
Serial.begin(57600);
Serial.println("Ready1");
pinMode (8,OUTPUT);void loop () {
while(Serial.available()){
B = Serial.read();Serial.print(B);
}
B=0;if (B==224){
digitalWrite (8,HIGH);delay(1);
}else
digitalWrite (8,LOW);}
Sender code:
void setup()
{
Serial.begin(57600);}
void loop (){
Serial.print("A");
delay (1);
}