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

Andreas Koepke koepke at tkn.tu-berlin.de
Mon Oct 8 01:36:02 PDT 2007

>>On tda5250 you do not have to call it, even if you decide to toggle PacketAck
>>on each packet.
> I see. Where do you store the metadata that the packet needs acknowledgement?

In the meta data of the packet, there is no other way. I just change the
  ack field to WAS_(NOT_)ACKED when I pass the packet up. The PacketAck
interface changes this to (NO_)ACK_REQUESTED. The Mac can now detect
when a user forgot to set the ack field and assumes ACK_REQUESTED.

> Miklos

More information about the Tinyos-devel mailing list