@jkirchoff – drive the pin level with the digitalWrite(#, level) function.
If you’re using a Mayfly, the XBee’s sleep request pin is attached to the Mayfly pin 23. So to wake the bee, send data, and put it to sleep all you needs is:
// more print statements as desired
Use XCTU to set your XBee up to use pin sleep. That’s also (by far) the easiest way to test your other radio settings and connectivity before deploying. You could code all the radio setup with the Mayfly, but Digi’s program makes it much, much easier.