Not quite. You are NOT allowed to pick an arbitrary string, because
the TimerC module uses uniqueCount("Timer") to determine its user
count many users it has. Therefore, you MUST use
TOSBaseM.NetTimer-> TimerC.Timer[unique("Timer")];
TOSBaseM.DelayTimer-> TimerC.Timer[unique("Timer")];
Greg, note your wiring typo of having "NetTimer" on the left side on
both wiring lines, instead of "NetTimer" and "DelayTimer".
Cory
On 1/30/06, Matt Thompson <[EMAIL PROTECTED]> wrote:
> Hi,
>
> unique() only returns a unique value when the strings in parenthesis are
> identical, therefore you should use the same unique string for each timer.
>
> You are trying to wire the timers to the same interface (NetTimer)
>
> Try:
>
> TOSBaseM.NetTimer-> TimerC.Timer[unique("NetTimer")];
> TOSBaseM.DelayTimer-> TimerC.Timer[unique("NetTimer")];
>
> Cheers,
> Matt
>
>
> Gregory A. Moore wrote:
>
> > Hi All,
> >
> > I am trying to use multiple timers in one of my applications. I have
> > tried:
> >
> > Component.nc
> > TOSBaseM.NetTimer-> TimerC.Timer[unique("NetTimer")];
> > TOSBaseM.NetTimer-> TimerC.Timer[unique("DelayTimer")];
> >
> >
> > Module.nc
> > interface Timer as NetTimer;
> > interface Timer as DelayTimer;
> >
> > With the following wiring, I am getting the error:
> > DelayTimer.start() not connected.
> >
> > Please let me know if there is anywhere else I should look for help,
> > or if anyone has used multiple timers in an application and how.
> >
> > Thank You,
> >
> > Greg
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help