 int ir_current_rssi = 0;
 char current_id[03] = "00";
 bool is_increase_available = false;
+bool is_connected = false;
 char message[20];
 unsigned long start_time;
 boolean isWaitingReply;

	}
      }
    }
  }
}

boolean isPacketValid(char *message) {

      }
    }

    if (XBee.available()) {
      delay(10);
      while (XBee.available()) {
