Hi Dipti,

If I understand your problem correctly, you could do something like this:

ReceiveMsg.receive(..) {
  ...
  Timer.stop();
  // reset the loop variables for the new command
  Timer.startPeriodic(x * 1024); // periodic timer event
                                 // x seconds interval
}

Cheers,
Urs

Dipti schrieb:
> Hi all,
> 
> I need to develop an application in which one of the Motes say mote1 is 
> programmed to send counter values on RF. The other mote say mote 2 has to be 
> programmed in such a way that when it receives a particular count say 10 from 
> the mote1 it shud send highs on 3 i/o pins for say x secs, another 3 i/o pins 
> for another x secs.. and so on, in a loop.
> Events cannot be nested according to the rules, however in this case i wanted 
> the event Timer.fired() to be nested under ReceiveMsg.receive() event.. Is it 
> possibe. What is the other way out?
> 
> Pls Help,
> Dipti Jaiswal
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to