Hi,
So thanks for your reply!
I use Tinyos 2.1.1!
I add this code to TinyschedulerC:
 components new TimerMilliC as Timer0
 Sched.Timer0 -> Timer0
and this code to schedule file:
 uses interface Timer<TMilli> as Timer0
I call Timer0.getNow() but when I compile I receive below error!
I don't change it, just I add timer and I like to use Timer function in it!!
Help me please! so thanks



>________________________________
> From: Eric Decker <cire...@gmail.com>
>To: mansooreh mollaie <ms_moll...@yahoo.com> 
>Sent: Friday, December 21, 2012 12:17 PM
>Subject: Re: [Tinyos-help] Timer error
> 
>
>first you are using very old code.
>
>
>you should consider upgrading to tinyos 2.1.2
>
>
>
>
>What did you change?   This certainly used to compile.   You should start with 
>what you changed.
>
>
>On Fri, Dec 21, 2012 at 12:31 AM, mansooreh mollaie <ms_moll...@yahoo.com> 
>wrote:
>
>Hi all,
>>I like to use Timer in tossim scheduler but it error like this:
>>
>>
>>/opt/tinyos-2.1.0/tos/lib/timer/AlarmToTimerC.nc:63: scheduler depends on 
>>a task 
>>/opt/tinyos-2.1.0/tos/lib/timer/AlarmToTimerC.nc:63: The -fnesc_scheduler 
>>flag should specify a module 
>>/opt/tinyos-2.1.0/tos/lib/timer/AlarmToTimerC.nc:63: (the module with the  
>>scheduling code, even if the scheduler is a configuration)
>>/opt/tinyos-2.1.0/tos/lib/timer/VirtualizeTimerC.nc:60: scheduler depends on 
>>a task
>>I use HilTimerMilliC! how can I fix this!
>>I searched it but no answer!
>>help me please! so thanks
>>
>>
>>_______________________________________________
>>Tinyos-help mailing list
>>Tinyos-help@millennium.berkeley.edu
>>https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
>
>-- 
>Eric B. Decker
>Senior (over 50 :-) Researcher
>
>
>
>
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to