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 <mlomai...@googlemail.com>
À : tinyos <tinyos-help@millennium.berkeley.edu>; enis01a...@yahoo.fr
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
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to