This sounds like an silly reason to use one AM type (that is, being able to handle it in the same receive function). Just used a parameterized receive that handles multiple AM types or make the different receives call a central handler or... Keep it easy to understand; let the logic speak for itself unless there is a need to be tricky.
HTH, Paul On Wed, Jul 23, 2008 at 5:56 AM, Shikhar Sachan <[EMAIL PROTECTED]> wrote: > That is another way .. > including msg type in the payload and parsing it at application > level(your receieve.receieve function) > > Shikhar > > > > On Wed, Jul 23, 2008 at 1:15 PM, lili <[EMAIL PROTECTED]> wrote: >> Hi, i think maybe you can set a flag field in your packet payload and use >> only one AMSend interface, then you can handle different tasks according to >> different flag values every time when event sendDone is invoked. >> ________________________________ >> lili >> 2008-07-23 >> _______________________________________________ >> Tinyos-help mailing list >> [email protected] >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >> > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
