Re: [Tinyos-help] Re : wait in tinyos

2010-05-26 Thread C L
as phil said, tosthreads will work. lookup the net...u can find their paper on it and some tutorials. other than that, tos being an event-driven model, timer.fired() is the way to go (or, that's what i do). if possible, make ur variables global and use the timer. that's the simplest solution i

[Tinyos-help] Re : wait in tinyos

2010-05-25 Thread chikh omar
...@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

Re: [Tinyos-help] Re : wait in tinyos

2010-05-25 Thread Philip Levis
On May 25, 2010, at 2:23 PM, chikh omar wrote: 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... Use TOSThreads.