[Tinyos-help] receive msg

dima . dima__21 at hotmail.com
Wed May 28 03:45:15 PDT 2008


 
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!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080528/44a820d3/attachment-0001.htm 


More information about the Tinyos-help mailing list