[Tinyos-help] Components new AMSenderC(TOS_NODE_ID)?

Michael Schippling schip at santafe.edu
Thu Jun 11 13:42:24 PDT 2009


I think it's actually defined as a constant memory location,
so it won't resolve to the moteID until execution. The address
gets set to the ID at install time, so you can't do what it
seems you may be trying to do at compile time.

MS

Gary Lee wrote:
> hi,
>  
> 
> What is wrong with the following statement?
> 
>  
> 
> Components new AMSenderC(TOS_NODE_ID)?
> 
>  
> 
> That is, can I used TOS_NODE_ID as the AM? When I compile it, I got 
> error saying that "TOS_NODE_ID" is not a constant...
> 
>  
> 
> Thanks.,
> 
>  
> 
> Gary
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


More information about the Tinyos-help mailing list