[Tinyos-help] Source gets value from where BaseStation set

Ittipong Khemapech ik.tinyos at googlemail.com
Tue Mar 3 03:51:01 PST 2009


Hi,

Let say that I have one message structure defined as follows:

typedef nx_struct MyMsg {
  ...
  value;
} MyMsg;

BaseStation adapts the value:

myMsg->value++;

and then sends.

Upon the reception, the Source access the value and store in the temp
variable:

temp = myMsg->value;

My problem is that 'temp' is always zero.

Any helps would be appreciated.

Ittipong

2009/3/2 Ittipong Khemapech <ik.tinyos at googlemail.com>

> Hi all,
>
> I've been stuck with this problem. I have one message structure for
> BaseStation and Source. After data reception, BaseStation set value to a
> particular field. The Source then gets that value and uses it.
>
> The problem is the get value is always zero. Have I missed something or are
> there any aspects I should keep in mind?
>
> I've been debugging the codes, other parts work fine.
>
> Thanks,
> Ittipong
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090303/57a9c797/attachment-0001.htm 


More information about the Tinyos-help mailing list