I have created two functions that send different messages using the same
interface. I then call consecutively the two fucntions, like this:

sendReport1(...);
sendReport2(...);

Both this functions call Send.send(...) but only the second message seems to
be transmitted. I used a flag that is set to TRUE if  "call Send.send() ==
SUCCESS " and set to FALSE when sendDone() is fired.

How can i send the second message only when the flag is TRUE? I tried to do
a while loop inside the functions using the flag but that didn't work.

Michael

On Thu, Jul 24, 2008 at 1:27 AM, Michael Schippling <[EMAIL PROTECTED]>
wrote:

> Fire off the second send from the sendDone() of the first.
> I'd more expect to loose the second message because it's
> send() should return an error if the first hasn't completed,
> but who knows...
>
> MS
>
> Miky Mike wrote:
>
>> Hello all.
>>
>> I'm trying to send two consecutive messages with Send.send() from
>> CollectionSenderC. The problem i get is that only the second message is
>> actually sent.
>> Is there any way of  doing a non blocking loop that sends the message only
>> when the radio is free?
>> Does anyone know how to do this?
>>
>> Thanks,
>> Michael
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Tinyos-help mailing list
>> [email protected]
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to