Hi,

event void Boot.booted() {
    call Timer.startOneShot(2000);
}

event void Timer.fired() {
    send a packet here
    call Timer.startOneShot(1000);
}

On Fri, Jun 18, 2010 at 12:35 AM, Kartik Siddhabathula <
[email protected]> wrote:

> Hi Liu,
>
> It will be better if you give some code snippet.
>
> Thanks,
> Kartik
>
> --- On *Thu, 6/17/10, Xiaohui Liu <[email protected]>* wrote:
>
>
> From: Xiaohui Liu <[email protected]>
> Subject: [Tinyos-help] Timer not fire in TOSSIM
> To: "Tinyos-Help" <[email protected]>
> Date: Thursday, June 17, 2010, 11:02 PM
>
>
> Hi,
>
> I set a timer by calling Timer.startOneShot(1000), but it seems the timer
> never fires. The simulation does normally terminate in finite time, so there
> is no infinite loop. Can anyone give me some hint on what might be causing
> the problem? Thanks.
>
> --
> -Xiaohui Liu
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]<http://mc/[email protected]>
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
>


-- 
-Xiaohui Liu
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to