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

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Philip
Levis
Sent: Tuesday, November 21, 2006 11:06 AM
To: Tie Luo
Cc: [email protected] 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
[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

Reply via email to