On Jan 30, 2008, at 4:16 AM, Mustafa gozkun wrote:
Hi everyone,
I want to disseminate multiple int variables to the
motes , and i wanna know which one is better to be
used?
first is to use :
uses interface DisseminationValue<uint32_t> as A;
uses interface DisseminationValue<uint16_t> as B;
second is to use:
uses interface DisseminationValue<struct defined
where A and B are hold> as A&B;
Good question.
I'd recommend the second, as long as the struct is smaller than 16
bytes or so (can fit in a single packet with the dissemination
header). Dissemination will only need to allocate state (current
version number, Timer) for one item, and all of the variables can be
updated atomically.
Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help