Recently I want to use the interface CC2420Packet to set transmission power.
By using the command setPower. I am now working at Tinyos 2.1.2.

However, I encounter this error:

RadioCountToLedsC.nc: In function `changepower':
RadioCountToLedsC.nc:139: CC2420Packet.setPower not connected

In xxApp.nc

configuration RadioCountToLedsAppC {}
implementation {
  components MainC, RadioCountToLedsC as App, LedsC;
  components CC2420PacketC;
  // for change power
  //components CC2420ActiveMessageC;
  App.CC2420Packet -> CC2420PacketC;

in xC.nc

module RadioCountToLedsC @safe() {
  uses {
...
  // for change tx power
  interface CC2420Packet;
  }
}
implementation {
...
call CC2420Packet.setPower(&packet2, 3);
...
}

I have removed the extra code and only reserved the most relevant code.
where am I wrong? Thanks! How to wire the CC2420Packet correctly?



--
View this message in context: 
http://tinyos-help.10906.n7.nabble.com/how-to-wire-CC2420Packet-to-user-code-encounters-in-tinyOS-tp25063.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to