I am trying to demonstrate the sleep function in the WSNDemo. I load the example project and I only change the APP_ADDR in config.h to 0x8005. I want to change APP_SENDING_INTERVAL and see that the end device sleeps for that amount of time.
I should be able to notice the sleeping by seeing the LED stay off for APP_SENDING_INTERVAL number of milliseconds right? Even if there is no "coordinator" device, just the end device being the only powered-on device?
I'm not seeing this. The LED does its on/off pattern periodically and the period does not change with APP_SENDING_INTERVAL.
I've tried it with a "coordinator" but the end device still doesn't sleep so I figure I can ignore the networking stuff and just get the standalone device to sleep.
Using the debugger, it does stop at a breakpoint in the RTC callback, so it seems like it's working but it seems like the callback is instantly getting called.
I'm using a SAMD20 Xplained Pro, and a Wireless Xplained Pro Zigbit with the ATZB-RF-212B.
Any feedback is appreciated, thanks!