[Tinyos-help] please help in error: msgP must be network type

avinash chaurasia avinash.aviank2003 at gmail.com
Tue Apr 6 13:25:06 PDT 2010


thanks for replying i already changed it to
typedef nx_struct comPacket{
  nx_uint16_t addr;
  nx_uint8_t length;
  nx_uint8_t msgP[40];
} com_packet_t;

now its working

Thanks
Avinash Kumar Chaurasia
Department of Computer Science
IIT Kanpur, India


On Tue, Apr 6, 2010 at 7:43 PM, Arik Sapojnik <sapojnik at gmail.com> wrote:

> 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 <
> avinash.aviank2003 at gmail.com> 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
>> Tinyos-help at millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
>
> --
> Best Regards,
> Arik Sapojnik
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20100406/d4da15e8/attachment.htm 


More information about the Tinyos-help mailing list