AMSend.send is in a command of my component.
My component is Channel .
command void Channel.init() {
call SplitControl.start();
// BLOCK HERE
}
command void Channel.send() {
// For this reason I can't do that you said me .
}
event void SplitControl.startDone(error_t err) {
if (err != SUCCESS) {
call SplitControl.start();
} else {
// CONTINUE HERE
}
}
Thanks again :)
Edel Angel Rodríguez Sánchez
Facultad de Informática
Universidad de Granma. Cuba
From: "Eric Decker" <[email protected]>
To: "Edel A. Rodriguez Sanchez" <[email protected]>
Cc: [email protected]
Sent: Sunday, December 19, 2010 5:45:46 PM
Subject: Re: [Tinyos-help] I need my application to expect
I think you answered your own question...
put the AMSend.send into the SplitControl.startDone.
On Sun, Dec 19, 2010 at 2:31 PM, Edel A. Rodriguez Sanchez < [email protected] >
wrote:
Doesn't work :(
Look my problem:
- In a component I have a command named init to do SplitControl.start .
- After that, I want my application don't do anything until the event
SplitControl.startDone .
My application after SplitControl.start do AMSend.send this generates a EOFF
error. Because it have to wait event SplitControl.startDone occur and after do
AMSend.send .
Thanks one more time .
Edel Angel Rodríguez Sánchez
Facultad de Informática
Universidad de Granma. Cuba
From: "wasif masood" < [email protected] >
To: "Edel A. Rodriguez Sanchez" < [email protected] >
Cc: [email protected]
Sent: Sunday, December 19, 2010 4:49:11 PM
Subject: Re: [Tinyos-help] I need my application to expect
make a function, do a
while(flag){
};
in some event, like received
set the flag to false
I gues this should work.
On Sun, Dec 19, 2010 at 10:43 PM, Edel A. Rodriguez Sanchez < [email protected]
> wrote:
Hi all.
How I can do that my application expect for an event.
That is, I Want my application to get blocked until an event wake her up.
Thank you very much to all.
Edel Angel Rodríguez Sánchez
Facultad de Informática
Universidad de Granma. Cuba
________________________________________
Universidad de Granma. Bayamo, M.N. Cuba
http://www.udg.co.cu
Participe en el III Congreso Cubano de Desarrollo Local
9 al 11 de marzo de 2011
http://www.udg.co.cu/congreso
Tiempo: http://www.udg.co.cu/mrtg/weather/weather.html
Imagenes desde el satelite:
http://www.udg.co.cu/mrtg/weather/map/today-Bayamo-CUXX0001.jpg
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
--
Wasif Masood
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
--
Eric B. Decker
Senior (over 50 :-) Researcher
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help