Hi all,

I am pretty new to TinyOS and am having trouble with getting the hop number.
I apologize if any of my thoughts are wrong.

This is what I wrote in TestNetwork's function: sendMessage()

----
TestNetworkMsg* msg = (TestNetworkMsg*)call Send.getPayload(&packet, 
sizeof(TestNetworkMsg));

msg->hopNum = call CtpInfo.getThl(&packet);
----

I have no errors but I only get the value 0 though I am forcing parents to be 
sequential so that the motes would hop in short distance.
I thought that this getThl was supposed to be written in the Receive.receive 
command so I wrote it there but didn't work as well.

Could anybody please answer this?

--
Shin


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

Reply via email to