I use a struct of message with data length that depend on the type of
message

How can do that in nesC?

 

 

 

typedef struct riseg_msg{

  nx_uint8_t type;    /*the type of the riseg message*/

  nx_uint8_t data[size depend on type]; /*  the data is also a struct that
depend on the type of the message*/

  nx_uint32_t mac;    /* the mac field, present in all riseg message */

} riseg_msg_t;

 

Thanks in advance,

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

Reply via email to