Hi,
I had the same doubt about that, you can see a good explanation in
TinyOS Programming(tinyos-programming.pdf), page 48. Where It talks
about the Receive interface.
I hope it can help you.


On Wed, May 28, 2008 at 6:45 AM, dima . <[EMAIL PROTECTED]> wrote:
>
>
> hello plz i have 2 questions when sending a message and receiving it
>
>
>
> 1-like in this command the message being sent is it pmsg? or it is ret=msg
> ???
>
>
>
> event TOS_MsgPtr ReceiveCmdMsg.receive(TOS_MsgPtr pmsg){
>     TOS_MsgPtr ret = msg;
>     result_t retval;
>
>     retval = call ProcessCmd.execute(pmsg) ;
>     if (retval==SUCCESS) {
>       return ret;
>     } else {
>       return pmsg;
>     }
>
>
>
> if the retval ==success the command return ret (=msg) is it the message that
> we are trying to send and receive ??
>
>
>
>
>
> thx
>
>
>
> else the event return pmsg ,what does it refers to ?
>
>
>
> thx alot
>
> ________________________________
> Invite your mail contacts to join your friends list with Windows Live
> Spaces. It's easy! Try it!
> _______________________________________________
> 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