Look at the Configuration file of OscilloscopeRF. It should have a line like 
this:
   
    SendMsg = GenericComm.SndMsg[AM_XXXX];
   
    What you need is add lines similar to that for different active message 
types, as follows:
   
  - Add the AM_yourconstants in the .h file.
  - In the module file, add the handler for these events.
  - In the configuration file, add the wirings as I said above.
   
    Heo
  

Nagaraj H K <[EMAIL PROTECTED]> wrote:
  I am currently Using TinyOS ver 1.10.I have been very new to nesC 
Programming.I am looking for an Interface which will provide me an Event to 
listen to a particular kind of message.Right now,I figure out that the 
Interface ReceiveMsg has an Event(Interrupt handler) of signature ::event 
TOS_MsgPtr ReceiveMsg.receive(TOS_MsgPtr Msg).   My application is going to be 
flooded with different custom messages
  How do i use this event to configure it so that it can listen only to a 
particular kind of message?
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

 
---------------------------------
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to