TOSH_DATA_LENGTH is the maximum size of the data payload
for all messages in the system.
Msg.length is the number of bytes in the data array that are
actually used in the particular message. Only that number
of bytes are transmitted.
MS
aneekat patkar wrote:
Hi,
The definition of the TOS_Msg structure present in the AM.h file lists
a TOS_Msg.length field.
Also there is a length specification for the TOS_Msg.data array given by-
int8_t data[TOSH_DATA_LENGTH];
The latter array length (TOSH_DATA_LENGTH]) seems to be specified in the
#define statements in the AM.h file.
what is the purpose of the former (TOS_Msg.length) length field ?
Sincerely,
Aneeket.
------------------------------------------------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
Play Sims Stories at Yahoo! Games.
<http://us.rd.yahoo.com/evt=48224/*http://sims.yahoo.com/>
------------------------------------------------------------------------
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help