[SOLVED]Im having problems with my xbee after waking it up from sleeping =/

so I got the xbee to turn on and off through code which I was having troubles with earlier, but now the association light just blinks when I wake it up and the xbee reset light turns on when I try to connect to it with my computer(its the wifi version) can anyone help out? I have no idea whats going on here =/

edit:I just had my rx,tx pins backwards :blush:

It also randomly appears and disappears off my wifi network list.