Actually nodeid is declared in the booted function, as nodeid = TOS_NODE_ID.

What I have to do is that when the startDone function is run, it loads the
varialvel nodeid with the value of the node and does not change.

What is happening now is that starDone executes on node 24 (for example) and
there nodeid = 24, sends the packet that was received by node 13. When node
13 is to retransmit, the starDone function loads nodeid = 13 (is the Node
that is transmitting), this is what is wrong, since I wanted nodei = 24 to
remain unchanged, so when node 13 retransmitted the packet and it arrived at
the sink (node 0) the sink would know that the packet originated at the node
24 (I do not care if he went through 13).

Could I explain my question better?




--
View this message in context: 
http://tinyos-help.10906.n7.nabble.com/Variable-with-static-TOS-NODE-ID-tp25094p25100.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to