Hi, just fast guessing... I have not understood, are you sure that the other mote is transmitting every time, or just once? You could set a led in the transmitter to check it.
Cheers! Sergio On Mon, Jun 20, 2011 at 8:54 PM, [email protected] < [email protected]> wrote: > > Hello, > > I have been using the MicaZ motes for a few weeks without any trouble but > all of the sudden I can't get the receive message event to work properly. > > My code for the event is simply: > > event message_t* Receive.receive(message_t* msg, void* payload, > uint8_t > len) > { > call Leds.led1Toggle(); > } > > I set it up with another mote sending a simple message every second. > > Led 1 turns on when I start up the other mote, but it will not toggle. This > leads me to believe the event is only being called once and not every time > it gets a message. I toggle another LED in a timer and it continues to > toggle the whole time the mote is on (so its not like its freezing or > anything). > > Is there any reason that the receive event would only be called once? > > I had this working fine before and I don't know what I'm doing differently > now. > > Thanks for your help, > Matthew Jacques > > -- > View this message in context: > http://old.nabble.com/Recieve-event-not-working-properly-tp31888261p31888261.html > Sent from the TinyOS - Help mailing list archive at Nabble.com. > > _______________________________________________ > 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
