So how could I store in my code a radio struct? Should I construct another one 
regular struct and retrieve data from the payload?
Why it is so?

> On Feb 13, 2008 3:23 PM, Flavio Pompermaier <[EMAIL PROTECTED]> wrote:
> > Hi to all,
> > I have a very problem in defining a message types to send over the radio!
> > I want to make they endianess-indipendent so I use the nx_ suffix with 
> > structures and basic types.
> > However, when I compile my application I get errors like the following:
> >
> > 'DataMsg' defined as wrong kind of tag.
> 
> Did you bychance previously declare (not define) "struct DataMsg"
> somewhere (e.g. used 'struct DataMsg *p' somewhere)? If so, you've
> told the compiler that DataMsg is a regular struct, so it complains
> when you later tell it that it's a nx_struct...
> 
> David Gay
> 
> > and this is the type definition:
> >
> > typedef nx_struct DataMsg{
> >    nx_uint16_t dato;
> >    ControlInfo control;
> > } DataMsg;
> >
> > typeDef nx_struct ControlInfo{
> >   nx_uint16_t some_info;
> > } ControlInfo
> >
> > Is it because I use a type inside another one??
> > Could anyone help me??
> >
> > Thanks in advance,
> > Flavio
> >
> >
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
> 


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

Reply via email to