Home › Forums › Mayfly Data Logger › XBee Networks of Mayfly Loggers – 900Mhz › Reply To: XBee Networks of Mayfly Loggers – 900Mhz
2019-06-07 at 5:59 PM
#12917
@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:
digitalWrite(23, HIGH);
Serial1.print(“some text);
// more print statements as desired
digitalWrite(23, LOW);
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.