24 #include <Adafruit_BME280.h>
26 #define BARO_CORR_HPA 34.5879
27 #define TEMP_CORR_DEGREE -2.0
82 MyDbg(
"No valid BME280 sensor, check wiring!");
class MyData::RtcData rtcData
Data to store in the RTC memory.
MyOptions myOptions
The global options.
#define TEMP_CORR_DEGREE
The BME280 measure 2 degrees too high.
void MyDbg(String info, bool fromWebServer=false, bool newline=true)
Adafruit_BME280 bme280
Adafruit BME280 helper interface.
int pinGrnd
Ground-Pin connection to switch on the BME280 module.
double temperature
Current BME280 temperature.
MyBME280(MyOptions &options, MyData &data, int pin, uint8_t addr)
double pressure
Current BME280 pressure.
MyOptions & myOptions
Reference to global options.
uint8_t portAddr
Port address of the bme280.
long bme280CheckIntervalSec
Time interval to read the temp, hum and pressure.
#define BARO_CORR_HPA
Correction for 289m above sea level.
MyData & myData
Reference to global data.
double humidity
Current BME280 humidity.
MyData myData
The global collected data.
long lastBme280ReadSec
Timestamp of the last BME280 read.
bool secondsElapsedAndUpdate(long &lastCheckSec, const long &intervalSec)