you can get some idea form this CTP  header structure :

typedef nx_struct {
  nx_ctp_options_t    options;
  nx_uint16_t        parent;
  nx_uint16_t         etx;
  nx_uint8_t (COUNT(0) data)[0]; // Deputy place-holder, field will probably
be removed when we Deputize Ctp
} ctp_routing_header_t;

is uses flexible array.


On Sun, Nov 28, 2010 at 2:04 PM, <[email protected]> wrote:

> How can i send a varying array of items as part of a message?
>
> I cast the return of call Packet.getPayload to my struct. The struct
> consists of some fix attributes. One of them is the number of
> attributes.
> The last attribute is a pointer/ array of an other struct.
>
> Is there anybody who did something similar or might tell how to do this?
>
> Best regards,
> Enrico
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Wasif Masood
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to