On Nov 12, 2007, at 8:07 AM, Christophe Braillon wrote:
Hi, I have a problem compiling an application at this line: components new Timer<TMilli> as Timer0;
Timer is not a component. Timer is an interface.
I get the error "TestSwitchesAppC.nc:13: syntax error before `<'" It works when I change the line to: components new TimerMilliC() as Timer0; Has anyone an idea?
TimerMilliC is a component. Timer is not. So you can't instantiate a Timer, but you can instantiate a TimerMilliC.
Phil _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
