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 > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
