Other Parts Discussed in Thread: Z-STACK, SYSCONFIG
I am using the doorlock example. In the example, the device is sleepy end device where it transmits the lock status every 2 seconds.
For my application, I need to process some data which may or may not last 2 seconds. So, I need to be able to control the sleeping of the radio.
- Wakeup
- Connect to the network
- Send data
- Do the required processing
- Go to sleep for, say, 5 seconds.
I thought the best way to do this would be to configure the device to be always ON and explicitly put everything to sleep. I tried with the sleep() function assuming that it puts everything to sleep but looks like the radio stays on all the time.
How do I put the controller in Standby mode and wake it up after 5 seconds?