You need to include:
RangerM.SendIntMsg -> Comm.SendMsg;
Dave
On Mon, Jan 16, 2006 at 03:54:26PM -0600, Sam Pierson wrote:
> configuration Ranger {
> }
> implementation {
> components Main, RangerM, SingleTimer, LedsC, GenericComm as Comm;
>
> Main.StdControl -> SingleTimer.StdControl;
> Main.StdControl -> RangerM.StdControl;
> RangerM.Timer -> SingleTimer.Timer;
> RangerM.Leds -> LedsC;
> }
>
> I have GenericComm in there because I read it was a component that
> provides the SendMsg interface, but again I'm having trouble with it.
>
> Thanks
>
> On 1/16/06, Dave Tucker <[EMAIL PROTECTED]> wrote:
> > (Offline) Can you send the file that links RangerM as well ?
> >
> > Dave
> >
> > On Mon, Jan 16, 2006 at 03:33:55PM -0600, Sam Pierson wrote:
> > > 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
> >
>
>
> --
> Sam Pierson
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help