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