[Tinyos-help] Sending an array

Ruben Catteeuw rubencatteeuw at hotmail.com
Tue Mar 10 09:13:52 PDT 2009


Hi,

Did you change the message format in the header file?
I'm sending arrays without any problems.

I have this in my app header file:

typedef nx_struct LabelGetUpdateMsg {
      nx_uint16_t nodeid;
      nx_uint8_t text[getUpdateSize];
} LabelGetUpdateMsg;

regards

Ruben

Date: Tue, 10 Mar 2009 17:01:29 +0100
From: lrabinow at gmail.com
To: tinyos-help at millennium.berkeley.edu
Subject: [Tinyos-help] Sending an array

Hello,
I have made an application in which every node senses the energy on 5 different channels during a certain time slot and then sends the results to the root node. Everything seems to work now but I still face one problem.

Actually, I am able to send mote-to-mote only some integers, but not an array... In the code below, I would like to modify "uint8_t data" into an array "uint8_t data[100]" as well as "int8_t ED_VAL". I have not succeeded in it... Does someone know how do I have to do?

Thank you very much in advance!
Regards,Laurent
-- 
Laurent Rabinowitch
ULB

_________________________________________________________________
Installeer gratis de nieuwe Messenger
http://download.live.com/messenger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090310/b7f2b8b3/attachment.htm 


More information about the Tinyos-help mailing list