All:

I'm trying to figure out how to have dynamic payload sizes for the  
packets I am sending.  I know usually we use a nx_struct to define our  
packets but I'm not sure how to make this dynamic in size really.  The  
way my design works, I won't know exactly how much data should be sent  
in a packet until I've collected that amount of data and I hate to  
waste Tx power on a full packet if it isn't needed.  This data needs  
to be some sort of data type that I can perform bit operations on.

The other issue, I have asked about before, is dealing with maximum  
packet size.  I know that I should use getMaxPayload(), but how should  
I define the struct based on this data without traditional dynamic  
memory allocation?

I hope these questions make sense.

Newlyn

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

Reply via email to