gets temperature and humidity in the selected mode. If clock stretching as been selected the corresponding command 0x2cxx is issued followed by a wait until the measurement has been completed. The wait time used is the maximum measurement time for that mode found in table 4 chapter 2.2 of the data sheet.
Changed:
< <
If no clock stretching is selected, the method will poll the sht30 every ms for the result data. It within "timeout ms" the sht30 does not return the result an SHT3X.TIMEOUT error is raised.
> >
If no clock stretching is selected, the method will poll the sht30 every ms for the result data. If within "timeout ms" the sht30 does not return the result an SHT3X.TIMEOUT error is raised.
After the wait, the data are read out and the checksum checked. If the checksum received is wrong an SHT3X.CRC_ERROR is raised.