The length specified in the send() says how many bytes from the data array to transmit. If you say 1, then 1 byte is sent before the CRC. Setting TOSH_DATA_LENGTH (in T1 anyway) at compile time will set the maximum length allowed for any message. MS
ehsan monsef wrote: > Hi, i am writing a new compression algorithm in sensor network. i need > to send information as small as possible. from previous post i found i > can change length field in TOS_MSG. but how i can do that? by changing > directly like msg.type=5 or indirectly by passing 5 to second parameter > of "send" interface command. and if i just change it my message will > really shrinks or it is just for crc? > > thanks > > > > _______________________________________________ Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
