[Tinyos-help] msg->data

Omprakash Gnawali gnawali at cs.stanford.edu
Fri Nov 5 18:39:36 PDT 2010


On Wed, Nov 3, 2010 at 11:43 AM, wasif masood <rwmasood at gmail.com> wrote:
>
> Hi All,
>
> I have a simple question, Is
>
>  Packet.getPayload(msg) == &msg->data
>
> ????(always)

No. In your stack, you might have multiple protocols that interpret
different parts of msg->data as header and payload.

- om_p



More information about the Tinyos-help mailing list