example code sending 64 bytes & then sleep mopde


I need to transmit 64 bytes on xbee pro s2b. This application is battery powered. On the other side, I want to receive 64 bytes with help of xbee pro s2b at receiver side.

Now at transmitter side, since it battery powered, I want that i send 64 bytes at one go & then set sleep pin high. Now xbee will transmit 64 bytes & go to sleep node as sson as all the bytes are received.

At receiver side, it is always powered. So I will receive 64 bytes.

Is there any example code for this.

There are several good sites that have sample code. Try google’s XBee examples but really it is dependent upon the processor you are using for the code.