[Tinyos-devel] purpose of the Packet.clear() function

Philip Levis pal at cs.stanford.edu
Mon Oct 8 11:47:27 PDT 2007


On Oct 8, 2007, at 5:11 AM, Andreas Koepke wrote:

>>> Once the user stops to think about what he intended, he can  
>>> express it.
>>
>>
>> Yes, exactly, but only with Packet.clear()!
>
> No, using the approrpiate get/set methods.

That assumes you know what all of them are. If you receive a packet  
over interface X which has some metadata fields, it's kind of  
problematic that one of these becomes matched to the CC2420 transmit  
power...

More details to follow.

Phil


More information about the Tinyos-devel mailing list