[Tinyos-help] nested events
John W. Barron
jwb042 at LaTech.edu
Tue Aug 28 10:53:05 PDT 2007
What are you trying to accomplish with the nesting?
John
Quoting Kevin Klues <klueska at gmail.com>:
> 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 <sara.khad at gmail.com> 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
>> Tinyos-help at Millennium.Berkeley.EDU
>> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
> --
> ~Kevin
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the Tinyos-help
mailing list