how to use VoltageC interface to get voltage value in 4BitLinkEstimator? 

in the  file tos\lib\4Bitle\LinkEstimatorC,I Add components VoltageC  in the
implementation;

then the code like this : 
configuration LinkEstimatorC {
    provides {
        interface LinkEstimator;
    }
}
implementation
{
    components VoltageC;
    LinkEstimatorP ->VoltageC;
}

the  in the  file tos\lib\4Bitle\LinkEstimatorP,i add " interface
read<unit16_t> as readVoltage;" like below;

module LinkEstimatorP {
  provides {
   .......
  }

  uses {
 ......
  interface read<unit16_t> as readVoltage;
  }

}
then  I use " call readVoltage.read();"to get voltage value;
I also code 
event void  readVoltage.readDone()
{
................
}

but when I compile ,it get error,tips is “readVoltage.read not connected”
I want to konw ,what'S wrong with it? Please help me ,I am a newer!!And my
English is poor,if you know somthing about this part,but Don't understand
what I express,just message to me,QQQ!



--
View this message in context: 
http://tinyos-help.10906.n7.nabble.com/how-to-use-VoltageC-interface-to-get-voltage-value-in-4BitLinkEstimator-tp23133.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