On Nov 26, 2006, at 11:41 AM, walid hamdi wrote:
Hi All!
I´m trying upon receiving a message to send back to
the sender and at the same time to the UART to see the
results on the pc. I´m making this using:
call SendMsg.send(_pongmsg->src, sizeof(PongMsg_t),
p_msg);
call SendMsg.send(TOS_UART_ADDR, sizeof(PongMsg_t),
p_msg);
But it seems that the the mote (sender) receives the
messages but there is nothing going to the UART:
clients 1, read 0, wrote 0.
Is the problem due to the the fact that i can not send
at the same time to two different destionations or is
there another cause??
A send is not complete until you get a sendDone event. If you check
the return value of the second send call, you will see that it
returns FAIL, because it is busy sending the first message.
Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help