It seems that the ncc can't treat your pointer (msgP) as nx type. If you are not planning to send this struct (and I don't see the point of sending a pointer) you can waive the nx_ prefix, and define it as usual variables.
Arik On Tue, Apr 6, 2010 at 16:38, avinash chaurasia < [email protected]> wrote: > hello > this is my structure defined > typedef nx_struct comPacket{ > nx_uint16_t addr; > nx_uint8_t length; > nx_uint8_t *msgP; > } com_packet_t; > > while compiling it gives "field `msgP' must be a network type". > Please tell me how to solve this problem > Thanks > Avinash Kumar Chaurasia > Department of Computer Science > IIT Kanpur, India > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- Best Regards, Arik Sapojnik
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
