Hello,
I am trying to use SHT21 sensor, but there are errors both in my
configuration file and when I am trying to compile my code.  The error is
: component 'Sht21C' is not generic

This is the part of the code that has this error:
components new Sht21C as TempSensor;
components new Sht21C as HumiSensor;

Please not that I have already created in my main module file.
//READ (SENSE)
interface Read<uint16_t> as TempRead; //Temperature reader
interface Read<uint16_t> as HumiRead; //Humidity reader

And I implement the wiring back in my configuration file.

This code works with SensirionSht11() device (which is generic).

What am I doing wrong? Do you think it will work with DHT21(3-pin
interface) sensor?

I am quite new in TinyOs so any suggestion, further reading or guidance
would be very helpful.
Thank you all.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to