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

Miklos Maroti mmaroti at math.u-szeged.hu
Mon Oct 8 00:31:33 PDT 2007


I think there should be, but it is unfortunately not used. If a user
requests for example acknowledgment via the PacketAcknowledgement
interface, then it is not clear when that flag will be cleared if the
message_t is reused. So the Packet.clear should be called to reset
everything to their defaults in the header and metadata, this should
be especially important between the serial and radio interfaces.


On 10/8/07, Razvan Musaloiu-E. <razvanm at cs.jhu.edu> wrote:
> Hi!
> Is there a strong argument for the existence of the Packet.clear()? The
> function is implemented by CC1000, XE1205 and TDA5250 but it is only used
> in the PacketParrot application.
> --
> Razvan ME
> _______________________________________________
> Tinyos-devel mailing list
> Tinyos-devel at Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-devel

More information about the Tinyos-devel mailing list