Hi,

You can create a variable that is incremented when a timer has fired, using
Timer.fired and then stop the timer when the variable has reached a certain
count using Timer.stop. For example:

# define WHENTOSTOP 50
uint32_t stopTimer = 0;
Timer.start(TIMER_REPEAT,3000)

event void Timer.fired() {
   if (stopTimer == WHENTOSTOP) { Timer.stop; }
   else {stopTimer++; }
}

Regards,

-- 
Mohammed Billoo
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to