[Tinyos-help] lesson learned from tinyos

Philip Levis pal at cs.stanford.edu
Sun Apr 25 10:47:05 PDT 2010


On Apr 25, 2010, at 6:58 AM, chikh omar wrote:

> Hello,
> I spent a week in order to resolve the problem of sending a message which is not detected at the receiver. For this reason, I partage the solution perphaps you get the same situation:
> The lesson learned is that:
>  
> *the message_t variable used to send and receive message must be declared as a global variable

More correctly, they can't be allocated on the stack, since the calls doesn't block; this is standard C programming.

Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20100425/05682f4a/attachment.htm 


More information about the Tinyos-help mailing list