Hi,
I want to receive two numbers first and the two character next through receiving zigbee from sending zigbee. Can anyone help me with the code:
This is the receiving Zigbee code
void loop()
{
if(Serial3.available() > 0)
{
Serial.println("Entered");
data = Serial3.read();
Num = Serial3.read();
if(data == 'S' || data == 'L' || data == 'R' || data == 'T')
{
Serial.println(data);
SD_Follow(data);
}
else if (Num == X_S1)
X_S = X_S1;
else if (Num == Y_S1)
Y_S = Y_S1;
Serial.println("Recieved");
Serial.println(X_S);
Serial.println(Y_S);
}
In this code I can receive the character but not the numbers.