Hmm, I am not quite sure how this could wake up a device after some time of sleep.
Anyhow, I've looked into that header you linked and there is a method called GoSleep(int ms, int deep). Maybe that could work, something like:
while True:
GetData()
GoSleep(300 * 1000, 1) # Deep sleep for 5 minutes
Do you know if these methods can be called directly from the shell?
|