[Tinyos-help] calculating Time using SimpleTime

fatima zohra fz.benhamida at gmail.com
Thu May 22 23:44:39 PDT 2008


Hi,
thanks for your reply,
could you show me the way you wired your interface.
i used SimpleTime but i get an error message while compiling :
here is my code :

configuration OnePhasePull {
}

implementation {

 components Main,
         OnePhasePullM,
         TxManC,
         GenericComm,
         TimerC,
         SimpleTime,
         LedsC;

  OnePhasePullM.Timer -> TimerC.Timer[unique("Timer")];
  OnePhasePullM.Time ->  SimpleTime.Time;
 // .......
}

*************************************
module OnePhasePullM {
  uses {

    interface Timer;
    interface Time;
// ....... some code lines
}
 //......some code lines
 tos_time_t timeStamp = call Time.get();
//......... some code lines
}

and this is my error message :

OnePhasePullM.nc: In function `Publish.publish':
OnePhasePullM.nc:429: Time.get not connected
make: *** [exe0] Error 1


i whish you can help me to fix it.
i'll be so thankful.

2008/5/23 509 sukumar <509.sukumar at gmail.com>:

> Hi,
>
>           I did using SimpleTime interface instead of SimpleTimeM.  Then I
> didnt get any error messages.
>
>           Better to check using SimpleTime interface.
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080523/fa20ebab/attachment.htm 


More information about the Tinyos-help mailing list