Multihop is for forwarding messages up a multihop tree, it is not for dissemination down the tree. Thus, there is no "Receive" interface, because the destination is the base station. Multihop does provide "Snoop" and "Intercept" which allow you to monitor messages as they traverse the tree towards a base station.
-Joe On 10/15/06, Tim Spargo <[EMAIL PROTECTED]> wrote:
Hi, I am using Tmote sky mote with Delta application (which uses Multihop). Could someone please point me to a basic Application/code snippet which receives messages? Please include any event handler code. I would like to send messages from the base stn. to a paricular mode in the Network. >From the tmote-sky-quickstart.pdf it says to use: components Multihop; ... AppM.Send -> MultiHop.Send[APP_ID]; AppM.Receive -> MultiHop.Receive[APP_ID]; However I get a compile error on the Receive statement only, since Multihop doesn't appear to provide the Receive interface. I am able to get a clean compile using the GenericComm component, but I am guessing I will run into trouble with Multihop. Another idea is to just use the "Intercept" interface to process the message, and forward message not addressed to this mote. Thanks, Tim _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
