Maybe something like...
typedef nx_struct FracturedClotureMessage
{
nx_uint8_t emetteur;
nx_uint16_t destinataire;
nx_uint8_t type; // special value, say,
0, represents this is a message fragment (first message has true
type), could be combined with "tracking"
nx_uint8_t tracking; // each message fragment
will share the same id from source, to guard cross-joins (maybe not
needed)
nx_uint8_t left; // how much data in
all remaining messages that should be joined, last messages when <=
fill_size
nx_uint8_t data[fill_rest];
} FracturedClotureMessage;
In my code (it uses the SF interface, but not real nodes), I actually
decompose and wrap packets, much like a network frame.
The above random babbling is really a merger of the approach I'm
taking, slightly adapted, and combined into a TOS message.
HTH,
Paul
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help