I tried to modified the Oscillioscope Application to use the SHT11 of the
MTS400 sensorboard as the data source for the Read function. Instead of
using the DemoSensorC() as Sensor, I created a new configuration named
SHTSensor, which has this code:

generic configuration SensorSHT() {
  provides interface Read<uint16_t>;
}
implementation {
  components new SensirionSht11C() as Sensor;

//  Read = Sensor.Temperature;
  Read = Sensor;
}

But when I compile it I got this error:

In component `OscilloscopeAppC':
OscilloscopeAppC.nc:31: component SHTSensor not found
OscilloscopeAppC.nc:31: component `SHTSensor' is not generic
OscilloscopeAppC.nc:38: no match
make: *** [exe0] Error 1

Can someone explained to me what happened? Thank you!

Mark Patrick Cabrera
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to