ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
esphome::bme280_base Namespace Reference

Data Structures

struct  BME280CalibrationData
 Internal struct storing the calibration values of an BME280. More...
 
class  BME280Component
 This class implements support for the BME280 Temperature+Pressure+Humidity sensor. More...
 

Enumerations

enum  BME280Oversampling {
  BME280_OVERSAMPLING_NONE = 0b000 , BME280_OVERSAMPLING_1X = 0b001 , BME280_OVERSAMPLING_2X = 0b010 , BME280_OVERSAMPLING_4X = 0b011 ,
  BME280_OVERSAMPLING_8X = 0b100 , BME280_OVERSAMPLING_16X = 0b101
}
 Enum listing all Oversampling values for the BME280. More...
 
enum  BME280IIRFilter {
  BME280_IIR_FILTER_OFF = 0b000 , BME280_IIR_FILTER_2X = 0b001 , BME280_IIR_FILTER_4X = 0b010 , BME280_IIR_FILTER_8X = 0b011 ,
  BME280_IIR_FILTER_16X = 0b100
}
 Enum listing all Infinite Impulse Filter values for the BME280. More...
 

Functions

 ESPHOME_LOG_TAG (TAG, "bme280.sensor")
 
 PROGMEM_STRING_TABLE (IIRFilterStrings, "OFF", "2x", "4x", "8x", "16x", "UNKNOWN")
 
 PROGMEM_STRING_TABLE (OversamplingStrings, "None", "1x", "2x", "4x", "8x", "16x", "UNKNOWN")
 
uint8_t oversampling_to_time (BME280Oversampling over_sampling)
 

Enumeration Type Documentation

◆ BME280IIRFilter

Enum listing all Infinite Impulse Filter values for the BME280.

Higher values increase accuracy, but decrease response time.

Enumerator
BME280_IIR_FILTER_OFF 
BME280_IIR_FILTER_2X 
BME280_IIR_FILTER_4X 
BME280_IIR_FILTER_8X 
BME280_IIR_FILTER_16X 

Definition at line 50 of file bme280_base.h.

◆ BME280Oversampling

Enum listing all Oversampling values for the BME280.

Oversampling basically means measuring a condition multiple times. Higher oversampling values therefore increase the time required to read sensor values but increase accuracy.

Enumerator
BME280_OVERSAMPLING_NONE 
BME280_OVERSAMPLING_1X 
BME280_OVERSAMPLING_2X 
BME280_OVERSAMPLING_4X 
BME280_OVERSAMPLING_8X 
BME280_OVERSAMPLING_16X 

Definition at line 37 of file bme280_base.h.

Function Documentation

◆ ESPHOME_LOG_TAG()

esphome::bme280_base::ESPHOME_LOG_TAG ( TAG ,
"bme280.sensor"  )

◆ oversampling_to_time()

uint8_t esphome::bme280_base::oversampling_to_time ( BME280Oversampling over_sampling)
inline

Definition at line 169 of file bme280_base.cpp.

◆ PROGMEM_STRING_TABLE() [1/2]

esphome::bme280_base::PROGMEM_STRING_TABLE ( IIRFilterStrings ,
"OFF" ,
"2x" ,
"4x" ,
"8x" ,
"16x" ,
"UNKNOWN"  )

◆ PROGMEM_STRING_TABLE() [2/2]

esphome::bme280_base::PROGMEM_STRING_TABLE ( OversamplingStrings ,
"None" ,
"1x" ,
"2x" ,
"4x" ,
"8x" ,
"16x" ,
"UNKNOWN"  )