RSSI Data dBm

Am I not getting the XBee in AT Command mode when I write +++?

Yes, but if commands don't arrive in a timely fashion, it exits command mode. As I recall, "timely fashion" means less than a second between commands. Your 1 second delay shoots that opportunity all to hell.