Don't receiving confirmation of the changes from the xbee

Thanks rossb I put the ATWR command on the end of input and it worked well.
Thanks all of you guys, you helped me a lot.