Closed vinicentus closed 10 months ago
Oops, the problem was that I was using with LinuxI2cTransceiver(self.i2cPort) as i2c_transceiver:
, meaning that the i2c_transceiver
was automatically closed in my init
method, so it could not be used anymore in the readTempHumidity
method. Now I feel dumb.
Apologies for spamming your issues!
Hej @vinicentus ,
No worries. There is no stupid mistakes. Maybe this issue will help someone in the future. Have fun with your project
Cheers Q
When running this with a SHT30-D sensor connected via i2c to a raspberry pi, I can't use the method measure_single_shot() without getting an exception. start_periodic_measurement() and blocking_read_measurement() methods work.
Here is the error I get:
The relevant code section looks like this:
Line 29 of the error corresponds to
(a_temperature, a_humidity) = ...
.Doing the following yields the same result:
Any help would be gratly appreciated, I've been trying to debug this for 2 hours :D
EDIT: here is the whole file: