PLease send messages to the help list, not me directly...

In this case it is true, once receive returns a message buffer
it should be considered to not exist any more, and send takes
a while to do it's magic...

As to the difference between T1 and T2, either nothing or everything
depending on the scale you are interested in...I don't use T2 so I
can't really comment.

MS


Akashdeep Sodhi wrote:
> Hi can you please tell is this true for receive function
> 
> Receive a packet buffer, returning a buffer for the signaling
>    * component to use for the next reception. The return value
>    * can be the same as <tt>msg</tt>, as long as the handling
>    * component copies out the data it needs.
>    *
>    * <b>Note</b> that misuse of this interface is one of the most
>    * common bugs in TinyOS code. For example, if a component both calls a
>    * send on the passed message and returns it, then it is possible
>    * the buffer will be reused before the send occurs, overwriting
>    * the component's data. This would cause the mote to possibly
>    * instead send a packet it most recently received.
> 
> because am using both components in the receive function for forwarding 
> my payload in the network
> -- 
> Regards
> Akashdeep Singh Sodhi
> 
> 
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to