Hi everyone,
I'm using TOSSIM. The problem is similar to the mentioned below...
What I want to do now is send a message to a specific mote. I've found out how
to send boradcast messages, where the structures to define an AMMessage, and
staff useful, but I only get compilation errors, like: no-match or
ActiveMessageAddress component not found. Right down I write a piece of code,
that I'm sure causes the errors.
Maybe I'm using the wrong components?? Any Ideas!!?
Please help!
thank you in advance!
Monica
CODE:
At the module I'm doing something like this:
-------------------------------------------------------------------
module PFM_topo2C @safe() {
uses {
//other interfaces
interface ActiveMessageAddress;
}
}
implementation {
am_addr_t nodeAddress;
//other variables
event void MilliTimer.fired() {
nodeAddress = call ActiveMessageAddress.amAddress();
//other instructions that work
// call AMSend.send(AM_BROADCAST_ADDR, &packet,
sizeof(radio_count_msg_t)), command used to send a broadcast message
}
// other events
}
-------------------------------------------------------------------
At the Interface of the module I do something like this:
configuration PFM_topo2AppC {}
implementation {
components MainC, PFM_topo2C as App, LedsC;
components ActiveMessageAddressC;
//other components
App.ActiveMessageAddress -> ActiveMessageAddressC;
}
--- El vie, 24/4/09, Abhishek Phadnis <[email protected]> escribió:
De: Abhishek Phadnis <[email protected]>
Asunto: [Tinyos-help] 'No Match Error'
Para: [email protected]
Fecha: viernes, 24 abril, 2009 11:39
hey all,
have a small program which we trying to implement..its based on the sense
program..have debugged most of the errors
and the last remaining on is
CommonSenseAppC.nc:15: no match
make: *** [exe0] Error 1
the line in question is " CommonSenseC.Read -> DemoSensorC; "
now we've no idea how to proceed..do we need the hardware for this? we only
have the avrora simulator to work with..
thanks
abhishek
_______________________________________________
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