hello

Am I right?

A message_t max payload length is of TOSH_DATA_LENGTH (equal to 28) bytes.

So I can transmitt only a message with this maximum payload, for  
example my payload can be a message of type ClotureMessage with :

          typedef nx_struct ClotureMessage
        {
                nx_uint8_t  emetteur;//1 byte
                nx_uint16_t  destinataire;//2 bytes
                nx_uint8_t  type; .. 1 byte
                nx_uint8_t  data[24];//24 bytes
        }ClotureMessage;//a total of 28 bytes

If I want to send more payload, for instance :

       typedef nx_struct BiggerClotureMessage
        {
                nx_uint8_t  emetteur;//1 byte
                nx_uint16_t  destinataire;//2 bytes
                nx_uint8_t  type; .. 1 byte
                nx_uint8_t  data[276];//276 bytes
        }BiggerClotureMessage;//a total of 280 bytes

I have to send 280 messages of ClotureMessage type , and so to manage  
the message splitting?

best regards

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

Reply via email to