Ping Arduino Led and Switch

You can't use AT mode to directly set/read XBee pins. That can only be done in API mode.