On Fri, 2013-01-11 at 04:56 -0500, Swetha wrote:
> hello, 
> 
> 
> I tried to transfer a packet with the structure as;
> 
>   typedef  nx_struct RouteDiscovery_t{
>    nx_uint8_t    type;
>    nx_uint16_t   route_record[17];   /// problem!!
> }
> 
> 
> I tried to print after the event sendDone, it prints bad packet.
> but when I remove ''nx_uint16_t   route_record[17]'' , it could able
> to send a packet.
> 
> 
> what the mistake am I doing? Please guide.
> 
> 
Maybe the size of the data packet, I don't remember the TinyOS default
packet size, but you could add this to your makefile:

CFLAGS += -DTOSH_DATA_LENGTH=100

And see if this resolves it.

--Antonio
> 
> 
> 
> Swetha
> sweth...@aol.com
> 
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to