Hi,

I have been working on SHTC3 temperature and humidity sensor. This sensor
works on I2C interface.

I wanted to create a sensor device driver for this sensor so that I can
work on shell commands and OFC.

I am facing some issues to read the sensor. Maybe, I might be missing
something that I do not know. I tried to look at other similar sensor
example but still there might be something that I do not understand or
forget.

I am attaching the code for the sensor driver  that is very basic and just
reads single sample, As the sensor is OFB sensor, I am also attaching the
code for the creator package.

following is the output for shell commands.

compat> sensor list
115859 sensor dev = shtc3_0, configured type = 0x10 0x100

compat> sensor read shtc3_0 0x10 -n 5 -i 5000
compat> Cannot read sensor
002697 Reading done

I also tried to update the application code to enable the sensor and other
methods such as sensor_read() but no success.

Best Regards,
Ujjval Rathod

<<attachment: shtc3.zip>>

Reply via email to