Thank you, this is exactly what I needed!

On 10/27/05, Dave Tucker <[EMAIL PROTECTED]> wrote:
> Any time you use an interface, such as CC1000Control, you have to wire
> it to a component that provides that interface (in this case,
> CC1000RadioC).  In IntToRfm.nc, add CC1000RadioC to the list of
> components, and then wire the "uses" to the "provides":
>
>   IntToRfmM.CC1000Control -> CC1000RadioC.CC1000Control;
>
> Dave
>
>
> On Thu, Oct 27, 2005 at 03:32:28PM -0500, Sam Pierson wrote:
> > Hi all,
> >
> > I'm beginning to explore transmission power control with the mica2.  I read
> > some other posts from awhile back which describe the way to control the
> > signal strength: 1) wire to CC1000Control and 2) call SetRFPower.
> >
> > I added a couple lines to IntToRfmM.nc to see if I could make a difference
> > but I only end up with compiler errors and I don't understand what I'm doing
> > wrong.
> >
> > I add "uses CC1000Control" under the uses part of IntToRfmM.nc and I
> > add the line "call CC1000Control.SetRFPower(0x02);" in the function
> > IntOutput.output.
> >
> > When I attempt to compile CntToRfm (which uses IntToRfm), it reports
> > a compiler-time error, saying "CC1000Control.SetRFPower" not connected".
> > I can only assume that I have not wired something correctly, but I don't
> > know what.  Can someone point out my error?
> >
> > --
> > Sam Pierson
> >
> > _______________________________________________
> > 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

Reply via email to