[Tinyos-help] Can i declare a struct field with message_t type in tinyos 2.x

Jeongyeup Paek jpaek at usc.edu
Mon Oct 29 09:05:10 PDT 2007


Try

  typedef nx_struct MsgBuff{
      nx_uint16_t status;
      message_t mssg;
  } MsgBuff;

Thanks

- jpaek


Boni Chick wrote:
> Hello,
> 
> I am having problem when building a struct in tinyos 2.x :
> 
> typedef nx_struct MsgBuff{
>     nx_uint16_t status;
>     nx_struct message_t mssg;
> } __attribute__((packed)) MsgBuff;
> 
> it raises the error:  field `mssg' has incomplete type, field `mssg' 
> must be a network type
> 
> Is there any suggestion to solve this prob?
> 
> Thanks in advance,
> 
> Boni.
> 
> ------------------------------------------------------------------------
> *Ihre erste Baustelle?* Wissenswertes für Bastler und Hobby Handwerker. 
> <http://de.rd.yahoo.com/evt=48734/*http://de.answers.yahoo.com/dir/;_ylc=X3oDMTEzY2IyNmI0BF9TAzIxMTQ3MTgzMjIEc2VjA01haWwEc2xrA3RhZ2xpbmVz?link=list&sid=396545394>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

-- 

Jeongyeup Paek
Ph.D. student
Embedded Networks Laboratory
Department of Computer Science
University of Southern California
http://enl.usc.edu/~jpaek


More information about the Tinyos-help mailing list