You Reply: Hi
You should download DIGI's XCTU tool by using that you can set all parameters for the XBEE and that you must do before the XBee code from the arduino XBee library will behave as expected. The sleep-time as well - end divces always sleep the parameter 4 means it sleeps. Router will never sleep and then you also need a coordinator - these tree devices are set by firmware update using the XCTU tool