Hi All,

I want to insert the received event inside the timer.fire()!  The
compiler will complain of the nested events...  but

I am really need something like this:
......
event void AMControl.startDone(error_t err) {
    if (err == SUCCESS ) {
     call Timer1.startOneShot( 2000); // only once I do not need periodic
   }
 }

event void Timer1.fired() {
   event message_t* Receive.receive (..) {
     ......
  // somejob then it will call another timer
  }
}

Thanks for any ideas!!
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to