Hi,
Hello List,
I am completely new to the tinyos and related API.
I have defined a timer and using it in my application as below.
uses interface Timer<TMilli> as DelayTimer;
call DelayTimer.startOneShot(TIMER_PERIOD_MILLI);
Also defined a timer expiry handler as below,
event void DelayTimer.fired() {
//...
}
My requirement is that to pass an argument to this timer so that same
argument can be used in the the timer handler function. Another way is to
have an external queue, which would be accessed from this timer expiry
handler, but that is not clean approach. I do not know if argument passing
is possible in the thread function. Can someone provide how it can be done?
/anil.
--
View this message in context:
http://tinyos-help.10906.n7.nabble.com/Argument-passing-to-the-Timer-tp23851.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help