Hello users,

   I want to unicast a packet from source node 1 to destination node 2. I am
using tinyos 2.x and tossim. I specified the source and destination address
in the tossim topology file. Now, my question is the following:

when unicasting a packet, should I have to hard-code the destination address
in the following piece of code *before sending the packet?* Can I not
retrieve the source and destination address from tossim, store it in a
variable and replace '2' by the variable in the following code before
sending the packet?

*************************************

if (call Request_AMSend.send(2, &pkt1, sizeof(RequestMsg)) == SUCCESS) {
busy = TRUE;
}

*************************************


Thanks
Sriram
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to