David, The AM type is specified when you create the sender - components new AMSenderC(AM_TYPE);
This type is sent in the air. Arik . ----- Original Message ----- From: David Conde <[email protected]> Date: Tuesday, October 27, 2009 15:31 Subject: [Tinyos-help] About Active Messages Type (AM type in TOS_Msg) To: [email protected] > Hi, > > > > I am wondering how the destiny node is able to handler each message > depending on AM type. I have read about Lesson 4 in TinyOS 1.x > tutorial and > I would like to know where the AM type is included in the > TOS_Msg message > struct. I mean, if I type MyApp.Send à Comm.SendMsg[1] in the > sender side > and I do not fix AM type in another place (at least I did not > see to fix > this AM type in IntToRFM component), how the receiver side knows > which AM > type has the message?Is this AM Type included in the message > automaticallywhen I do Comm.SendMsg[1]? > > > > My question is how the receiver is able to send to one concrete > messagehandler from the message type if I have not directly > specified the AM type > in my TOS_Msg message when I send the message. > > > > Thanks in advance > > > > Regards > > > > David > >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
