Hi Arik, Receive.receive takes a message_t pointer and must return one: this is the classic buffer swap. So it is IMPOSSIBLE that two components receive the message, since they might return two different empty buffer. Probably you want to write an adapter module that does the right thing (uses one Receive interface and provides two Receive interfaces but ignores the message_t returned by one of them, or something like that).
Miklos On Mon, Mar 22, 2010 at 2:11 PM, Arik Sapojnik <[email protected]> wrote: > Yes you are right (about all your assumptions). > So what should I do if need two modules to receives the same AM type? > > Arik > > > > On Mon, Mar 22, 2010 at 14:59, Miklos Maroti <[email protected]> > wrote: >> >> This is a completely different problem, probably you use the TELOS >> platform and not the IRIS one. Also, probably you use the AMReceiverC >> and also directly connect to the ActiveMessageC (or >> CC2420ActiveMessageP). I do not know what causes your compiler error, >> but it says that you connected two Receive interfaces to the same one >> provided by CC2420ActiveMessageP. Miklos >> >> On Mon, Mar 22, 2010 at 1:55 PM, Arik Sapojnik <[email protected]> wrote: >> > Hey, >> > >> > I'm using the official tree, but I still get this: >> > >> > nesc1: warning: calls to Receive.receive in CC2420ActiveMessageP fan >> > out, >> > but there is no combine function specified for the return type >> > >> > Arik >> > >> > >> > On Mon, Mar 22, 2010 at 14:31, Miklos Maroti <[email protected]> >> > wrote: >> >> >> >> Hi Lena, >> >> >> >> Use the official tinyos-2.x tree instead of the XBow environment. >> >> >> >> Miklos >> >> >> >> On Mon, Mar 22, 2010 at 1:10 PM, lena psara <[email protected]> >> >> wrote: >> >> > Dear all, >> >> > >> >> > In my application for Zigbee Iris to send and receive messages I am >> >> > having >> >> > the following two warnings: >> >> > >> >> > nesc1: warning: calls to Recv.receive in RF230RadioM fan out, but >> >> > there >> >> > is >> >> > no combine function specified for the return type. >> >> > nesc1: warning: calls to ReceiveCombined.receive in FramerAckM fan >> >> > out, >> >> > but >> >> > there is no combine function specified for the return type. >> >> > >> >> > Does anyone know how can I fix it?? >> >> > >> >> > Best Regards, >> >> > Lena >> >> > >> >> > >> >> > _______________________________________________ >> >> > 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 >> > >> > >> > >> > -- >> > Best Regards, >> > Arik Sapojnik >> > > > > > -- > Best Regards, > Arik Sapojnik > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
