I have 3 xbee series 2 end device on 3 arduino mega and i would like to put them in sleep mode. But because i have a temperature sensor i want them to wake when there is a temperature to send. Is that an issue of xbee’s configuration or is it a program on arduino. is there any example to see?
I don’t know how arduino interfaces the XBees, but you can wake up the moduel through the SLEEP_RQ pin if it is in SP=4 or SP=5. Consult the module documentation on sleep modes.
in order to use SLEEP_RQ pin, parameter to be configured is SM (Sleep Mode), not SP (Sleep Period). And values for pin enabled are 1 (wake only based on interruptions) or 5 (wake cyclic or based on interruptions). SM=4 implies only cyclic wake).