Prevent BME280 from overheating (#483)
* [BME280] Forced mode, 1x oversampling & no filter This is done to avoid overheating the sensor & comply with the recommended weather monitoring settings from Bosch * Not needed in Forced mode * Wrong includes
This commit is contained in:
parent
0fc5212c6a
commit
25bb7eb479
|
@ -1,7 +1,7 @@
|
|||
#ifdef SENSORS
|
||||
|
||||
#include "defaults.h"
|
||||
#include "TSL2561Sensor.h"
|
||||
#include "BME280Sensor.h"
|
||||
#include <WiFiSettings.h>
|
||||
#include <AsyncMqttClient.h>
|
||||
#include <Adafruit_BME280.h>
|
||||
|
@ -68,13 +68,12 @@ namespace BME280
|
|||
}
|
||||
|
||||
BME280.setSampling(
|
||||
Adafruit_BME280::MODE_NORMAL,
|
||||
Adafruit_BME280::SAMPLING_X16, // Temperature
|
||||
Adafruit_BME280::SAMPLING_X16, // Pressure
|
||||
Adafruit_BME280::SAMPLING_X16, // Humidity
|
||||
Adafruit_BME280::FILTER_X16,
|
||||
//Adafruit_BME280::FILTER_OFF,
|
||||
Adafruit_BME280::STANDBY_MS_1000
|
||||
Adafruit_BME280::MODE_FORCED,
|
||||
Adafruit_BME280::SAMPLING_X1, // Temperature
|
||||
Adafruit_BME280::SAMPLING_X1, // Pressure
|
||||
Adafruit_BME280::SAMPLING_X1, // Humidity
|
||||
//Adafruit_BME280::FILTER_X16,
|
||||
Adafruit_BME280::FILTER_OFF
|
||||
);
|
||||
|
||||
float temperature = BME280.readTemperature();
|
||||
|
@ -153,4 +152,4 @@ namespace BME280
|
|||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifdef SENSORS
|
||||
|
||||
#include "defaults.h"
|
||||
#include "TSL2561Sensor.h"
|
||||
#include "HX711.h"
|
||||
#include <WiFiSettings.h>
|
||||
#include <AsyncMqttClient.h>
|
||||
|
||||
|
|
Loading…
Reference in New Issue