What are you trying to accomplish with the nesting?

John


Quoting Kevin Klues <[EMAIL PROTECTED]>:

This is invalid nesc syntax.  See the tinyos programming guide found here...

http://csl.stanford.edu/~pal/pubs/tinyos-programming.pdf

Kevin

On 8/28/07, sara k <[EMAIL PROTECTED]> wrote:
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



--
~Kevin
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



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

Reply via email to