Disable Gaz reading for BME680

This save ~400ms on the 800ms the esp8266 is powered
This commit is contained in:
Mathieu Maret 2019-05-14 21:03:48 +02:00
parent 4fc32a30d8
commit a8233c4873

View File

@ -89,7 +89,7 @@ void setup()
bme.setHumidityOversampling(BME680_OS_2X);
bme.setPressureOversampling(BME680_OS_4X);
bme.setIIRFilterSize(BME680_FILTER_SIZE_3);
bme.setGasHeater(320, 150); // 320*C for 150 ms
bme.setGasHeater(0, 0); // 320*C for 150 ms or 0, 0 to disable it. Results are not reliable with deep sleep so disable it
#endif
}
@ -179,7 +179,7 @@ int doBMEMeasure() {
bmeInfo.push_back({bme.humidity, BME_HUMIDITY_FEED_FORMAT});
bmeInfo.push_back({bme.temperature, BME_TEMPERATURE_FEED_FORMAT});
bmeInfo.push_back({bme.pressure / 100.0, BME_PRESSURE_FEED_FORMAT});
bmeInfo.push_back({bme.gas_resistance / 1000.0, BME_GAZ_FEED_FORMAT});
//bmeInfo.push_back({bme.gas_resistance / 1000.0, BME_GAZ_FEED_FORMAT});
bmeInfo.push_back({(float)ESP.getVcc(), BME_VOLTAGE_FEED_FORMAT});
wifiConnect();