I want to wait into a function:
function ()
{
some variables
using variable
send (variables)
waitting
send(variables)
}
however with timer0.fired I will lack access to locales variables...
Is there any other method...
Best regards,
________________________________
De : C L <[email protected]>
À : tinyos <[email protected]>; [email protected]
Envoyé le : Mar 25 mai 2010, 12h 28min 50s
Objet : Re: [Tinyos-help] wait in tinyos
implement the timer module. eg.
in ur program...
call Timer.StartOneShot(100); // start a one-time timer for 100 ms
then, also in ur program...
event void Timer.fired()
{
//do what u wanted after waiting 100 ms
}
cheers
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help