Hey guys,
I'm trying to fix this program I'm writing, I think it is just a minor
problem. In the program, I send a message each time a timer
firers. I introduce the SendMsg interface like this:
uses {
interface SendMsg as SendIntMsg;
...
}
and then I send my message like this:
------------------------------------------------------------
event result_t Timer.fired() {
message = (IntMsg *)buf.data;
message-> val = 5;
message->src = 0x1456;
call SendIntMsg.send(TOS_BCAST_ADDR, sizeof(IntMsg), &buf);
return SUCCESS;
}
--------------------------------------------------------
When I compile for micaz by typing make micaz, it tells me:
RangerM.nc: In function 'Timer.fired':
RangerM.nc:66: SendIntMsg.send not connected
make: *** [exe0] Error 1
The thing I can't understand is how my other application can
successfully compile, since I do it almost exactly the same
way. I've tried variations of including some different components
that provide the SendMsg interface, but no luck.
Thanks,
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help