The component BusyWaitCounterC and interface BusyWait may come in handy ....
But do not wait for long using them...It gives some problem ... for
waiting for a longer time as in seconds use the timer...

Shikhar


On Fri, Jul 25, 2008 at 9:15 AM, deepanshu vasal
<[EMAIL PROTECTED]> wrote:
> hello,
> I wanted to know if there's any sleep/suspend/wait function in tinyos.
> actually i want to discover neighbors of the mote, so it broadcasts a
> message and waits for some time say 2sec, to collect replies in a neighbor
> cache.
> SO in my function i want a sleep function such that after sending a pkt it
> should wait for sometime for replies and then do processing based on the
> data from cache.
>
> Now i have 2 options
> *) busy waiting for some count. problem: increases computation, consumes
> power
>
> *)make my variables global and play with timer.fired()
> problem: more variables , more memory
>
> So i just wish to get any 3rd option from tinyos , if possible.
> thanks
>
> Deepanshu
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to