Hi All,
Sorry for posting such prelim questions. But here is
my problem.
------------------------------------------------------
I have an interface:
interface MySensing
{
command result_t start(Morpheus_MsgPtr pmsg);
event result_t done();
}
-----------------------------------------------------
I have a component MySenseM in which I have the
following:
command result_t MySensing.start(Some_Ptr pmsg) {
atomic {
cur_msg = pmsg;
}
call ADC.getData();
signal MySensing.done();
return SUCCESS;
}
async event result_t ADC.dataReady(uint16_t data) {
uint8_t i;
dbg(DBG_TEMP, "ADC returned data\n");
return SUCCESS;
}
-----------------------------------------------------
And finally I have another component TestM which has
the following:
void task someTask() {
call MySensing.start(curr_msg);
}
-----------------------------------------------------
The wiring is correct and when executed, I do have
TestM call MySenseM which does call ADC.getData().
However, the dataReady() in MySenseM does not get
executed. I am building the app for pc(simulation) and
have the ADC in MySenseM connected to the component
Photo just as it is in the example app:
SenseLighToLog.
Thanks in advance.
Rij
"Do the best you can, with what you have, where you are." -- Roosevelt
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help