HI,
I'm using Halsleep() function to send the TImac end node to sleep ,
My requirement is to send the data at once in a 2 hour to the co-ordinator , and send the node to sleep ..
the follwoing is the sudo code I have written to do the same ..
halsleep(48000) ;// since this can goes up to maxium 8.4 min here I'm fixing this 8 min . i.e (2hour/8=15) so I need to call this 15 times before sending the data ...
That uint8 sleepconut=15;
for(i=0;i<15;i++{
halsleep(48000);
}
But it is not going to sleep becoz of for loop ; if I remove the loop and call it once it will go to the sleep for 8 min ;;
how to implement this for two hours ;;?
regards
chethan