[Tinyos-help] About DemoSensorC implementations

xiaoyan yang xyyang9 at gmail.com
Tue Oct 31 00:25:01 PST 2006


 Dear TinyOS users,

I'm running RadioSenseToLeds in TOSSIM(T2) and have some questions about the
implementation of DemoSensorC. As mentioned in tutorial lesson 5, its
implementation is platform-specific. For the DemoSensorC.nc under
/tos/lib/tossim,

generic configuration DemoSensorC(){
  provides interface Read<uint16_t>;
}
implementation {
  components new ConstantSensorC(uint16_t, 0xbeef);
  Read = ConstantSensorC;
}

when I change it to "components new TempC() as Sensor; Read=Sensor;" and
complie TOSSIM, it has some errors(componet TempC not found, componet
'TempC' is not generic). I'm wondering is it possible to use other
platform's sensor in TOSSIM?

Thanks.

Regards,
-Xiaoyan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20061031/b99c9437/attachment.html


More information about the Tinyos-help mailing list