[Tinyos-help] how does Tinyos handle events if there are multipleevent handlers

Adam shiyuan69 at gmail.com
Wed Nov 22 10:08:33 PST 2006


The best way is to read build/xxx/app.c - it says everything!

-----Original Message-----
From: tinyos-help-bounces at Millennium.Berkeley.EDU
[mailto:tinyos-help-bounces at Millennium.Berkeley.EDU] On Behalf Of Philip
Levis
Sent: Tuesday, November 21, 2006 11:06 AM
To: Tie Luo
Cc: tinyos-help at Millennium.Berkeley.EDU list
Subject: Re: [Tinyos-help] how does Tinyos handle events if there are
multipleevent handlers


On Nov 21, 2006, at 5:54 AM, Tie Luo wrote:

> Dear All,
>
> If component A signals  an event, and component B (which uses an 
> interface implemented by A) defines an event handler as follows:
> async event void interfaceA.eventName(...) {} //void body
>
> Another component C users interfaceA and interfaceB (implemented by A 
> and B respectively), and C also defines an event handler as follows:
> async event void interfaceA.eventName(...) {..........}  //has some 
> code
>
> Then can C receive this event? (A, B are two lower-level componets and 
> C is at higher level) In my program the component C never gets this 
> event, and I am wondering if B "intercepts" this event.
>
> Thanks for any help!

I suggest you read the TinyOS programming manual. Section 5.1.1 goes into
this.

Phil
_______________________________________________
Tinyos-help mailing list
Tinyos-help at Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



More information about the Tinyos-help mailing list