Hi, Since the Disseminator component is generic, you can mention the type of the data you want to send in the declaration, as shown below.
In the configuration, components new DisseminatorC(message_t, 0x1234) as MyCommand; In module, uses interface DisseminationValue<message_t> as Command_Value; uses interface DisseminationUpdate<message_t> as Command_Update; On Tue, April 19, 2011 7:16 pm, Vishrut Shah wrote: > Hello , > > I just explored Dissemination protocol from tutorials. It > disseminates a counter in network . but i want to disseminate a own packet > so how can i do that ??? I found that interface > DisseminationUpdate.changed() and DisseminationValue.get() used for > geeting > & updating counter. > > I want to disseminate a packet containing TOS_NODE_ID and > sensore reading like Temperature , Himidity etc. > I know how to sense them but how can i use dissemination in that with my > packet structure ?? > > Thanks in advance > > -- > Thanks & Regards, > Vishrut Shah > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help --Deeksha -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
