Hello everybody
i am using xbee serie 2 and ATAP2(with escaped characters)
and i want to get the rssi byte from a coordinator that is connected to a xbee router and i have this code :
if (Serial2.available() > 21 && Serial2.read() == 0x7E)
{
for (int i=1;i<6;i++){
byte skipbyte = Serial2.read();
}
rssi = Serial2.read();//this is the byte 7(the rssi value)
Serial.print(“the value of rssi is”);
Serial.println(rssi);
delay(1000);
}
and the result is :
the value of rssi is 51
and this value does not change even if i move the coordinator!!! Can any one help me please