[Tinyos-help] MultihopOscilloscope - Send, Receive and Receive as Snoop
Paul Stickney
pstickne at gmail.com
Fri Aug 8 12:26:54 PDT 2008
http://www.tinyos.net/tinyos-2.x/doc/html/tep123.html
HTH,
Paul
On Fri, Aug 8, 2008 at 8:42 AM, Daniel Pereira <dpatricksp at gmail.com> wrote:
> Hi All,
>
> I didn't understand the Receive and Receive as Snoop interfaces.
>
> In the MultihopOscilloscopeAppC.nc, we have:
> ......
> interface Send;
> interface Receive as Snoop;
> interface Receive;
> ......
>
> And in the MultihopOscilloscopeAppC.nc, we have;
> ....
> MultihopOscilloscopeC.Send -> CollectionSenderC;
> MultihopOscilloscopeC.Snoop -> Collector.Snoop[AM_OSCILLOSCOPE];
> MultihopOscilloscopeC.Receive -> Collector.Receive[AM_OSCILLOSCOPE];
> ....
>
> So, when a send a message (call Send.send(&sendbuf, sizeof(local)),
> which is the received event, Snoop.receive or Receive.receive?
> I guess, only root receive event from Receive.receive, is it true?
>
> Best regards and thanks a lot
>
> Daniel Patrick
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
More information about the Tinyos-help
mailing list