Updated the 'softReset()' call to perform a 'general reset' on the I2c bus according to the SGP30 datasheet. Since the stored i2c device fixes the target address, the current solution does not work. Therefore, an optional theWire parameter is added to allow direct bus access.
Power consumption after including the revised function dropped from 48 ma to expected ESP32 deep sleep levels, indicating success.
Updated the 'softReset()' call to perform a 'general reset' on the I2c bus according to the SGP30 datasheet. Since the stored
i2c
device fixes the target address, the current solution does not work. Therefore, an optionaltheWire
parameter is added to allow direct bus access.Power consumption after including the revised function dropped from 48 ma to expected ESP32 deep sleep levels, indicating success.
This PR resolves #28 and #20