[Tinyos-help] How to get the node-id just by Mote?
蒋伟
demowolf.jiang at gmail.com
Wed Dec 20 16:55:09 PST 2006
Hi:
Thank you very much .That works well ,you get it!
What i want is that , so Thank you so much!
Jiang Wei
2006/12/19, Urs Hunkeler <uhu at gmx.ch>:
>
> Hi Jiang,
>
> I'm not sure what the proper way is on TinyOS-1.x. I checked in my old
> code and saw that I used TOS_LOCAL_ADDRESS. So probably something like:
>
> if(TOS_LOCAL_ADDRESS == 0) {
> // do something special for the root node
> }
>
> should work.
>
> cu
> Urs
>
>
> > Hi:
> >
> > I try to do as you say ,but seems the TOS_NODE_ID only works in Tinyos
> > 2.xor Mica platform, but not works in Tinyos
> > 1.x, so if you know , could you tell me what was the parameter in
> > Tinyos 1.xon Telos platform ?
> > Thank you anyway.
> >
> > Jiang Wei
>
--
Jiang Wei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20061221/b6f1d5df/attachment.htm
More information about the Tinyos-help
mailing list