Hi
i was reading tutorial mote-mote radio com... and i tried to install
BlinkToRadio in one mote and a Receive application in another mote.
this Receive app is my attempt to get the radio message from one mote and blink
the leds in the other mote, the problem is that its not working!
I install it in the second mote but nothing happens, can you please look at the
following code and help me ?
/*Module code*/
#include <Timer.h>
#include "BlinkToRadio.h"
module ReceiveC
{
uses interface Boot;
uses interface Leds;
uses interface Receive;
}
implementation{
event void Boot.booted()
{
}
event message_t* Receive.receive(message_t* msg, void* payload, uint8_t
len)
{
BlinkToRadioMsg* btrpkt = (BlinkToRadioMsg*)payload;
call Leds.set(btrpkt->counter);
return msg;
}
}
/*Configuration code*/
#include <Timer.h>
#include "BlinkToRadio.h"
configuration ReceiveAppC
{
}
implementation
{
components MainC;
components LedsC;
components new AMReceiverC(AM_BLINKTORADIO);
components ReceiveC as App;
App.Boot -> MainC;
App.Leds -> LedsC;
App.Receive -> AMReceiverC;
}
Thanks
Ze
_________________________________________________________________
Você sabia que pode acessar o Messenger direto do seu Hotmail? Descubra como!
http://www.microsoft.com/brasil/windows/windowslive/products/tutoriais.aspx_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help