Bme280 Class

Definition

Represents a BME280 temperature, barometric pressure and humidity sensor.

public class Bme280 : Iot.Device.Bmxx80.Bmx280Base
[System.Device.Model.Interface("Represents a BME280 temperature, barometric pressure and humidity sensor.")]
public class Bme280 : Iot.Device.Bmxx80.Bmx280Base
type Bme280 = class
    inherit Bmx280Base
[<System.Device.Model.Interface("Represents a BME280 temperature, barometric pressure and humidity sensor.")>]
type Bme280 = class
    inherit Bmx280Base
Public Class Bme280
Inherits Bmx280Base
Inheritance
Attributes

Constructors

Bme280(I2cDevice)

Initializes a new instance of the Bme280 class.

Fields

_communicationProtocol

Chosen communication protocol.

(Inherited from Bmxx80Base)
_controlRegister

The control register of the sensor.

(Inherited from Bmxx80Base)
_i2cDevice

I2C device used to communicate with the device.

(Inherited from Bmxx80Base)
DefaultI2cAddress

Default I2C bus address.

(Inherited from Bmx280Base)
SecondaryI2cAddress

Secondary I2C bus address.

(Inherited from Bmx280Base)
TemperatureFine (Inherited from Bmxx80Base)

Properties

_tempCalibrationFactor (Inherited from Bmxx80Base)
FilterMode

Gets or sets the IIR filter mode.

(Inherited from Bmx280Base)
HumiditySampling

Gets or sets the humidity sampling.

PressureSampling

Gets or sets the pressure sampling.

(Inherited from Bmxx80Base)
StandbyTime

Gets or sets the standby time between two consecutive measurements.

(Inherited from Bmx280Base)
TempCalibrationFactor

The temperature calibration factor.

(Inherited from Bmxx80Base)
TemperatureFine

The variable TemperatureFine carries a fine resolution temperature value over to the pressure compensation formula and could be implemented as a global variable.

(Inherited from Bmxx80Base)
TemperatureSampling

Gets or sets the temperature sampling.

(Inherited from Bmxx80Base)

Methods

ByteToSampling(Byte)

Converts byte to Sampling.

(Inherited from Bmxx80Base)
CompensateTemperature(Int32)

Compensates the temperature.

(Inherited from Bmxx80Base)
Dispose()

Cleanup.

(Inherited from Bmxx80Base)
Dispose(Boolean)

Releases the unmanaged resources used by the Bmxx80 and optionally releases the managed resources.

(Inherited from Bmxx80Base)
GetMeasurementDuration()

Gets the required time in ms to perform a measurement with the current sampling modes.

GetMeasurementDuration()

Gets the required time in ms to perform a measurement with the current sampling modes.

(Inherited from Bmx280Base)
Read()

Performs a synchronous reading.

Read16BitsFromRegister(Byte) (Inherited from Bmxx80Base)
Read16BitsFromRegister(Byte, Bmxx80Base+Endianness)

Reads a 16 bit value over I2C.

(Inherited from Bmxx80Base)
Read24BitsFromRegister(Byte) (Inherited from Bmxx80Base)
Read24BitsFromRegister(Byte, Bmxx80Base+Endianness)

Reads a 24 bit value over I2C.

(Inherited from Bmxx80Base)
Read8BitsFromRegister(Byte)

Reads an 8 bit value from a register.

(Inherited from Bmxx80Base)
ReadAltitudeAsync(Double) (Inherited from Bmx280Base)
ReadAsync()

Performs an asynchronous reading.

ReadFilterMode() (Inherited from Bmx280Base)
ReadHumidityAsync()
ReadHumiditySampling()
ReadPowerMode()

Read the Bmx280PowerMode state.

(Inherited from Bmx280Base)
ReadPressureAsync() (Inherited from Bmx280Base)
ReadPressureSampling() (Inherited from Bmxx80Base)
ReadStandbyTime() (Inherited from Bmx280Base)
ReadStatus()

Get the current status of the device.

(Inherited from Bmx280Base)
ReadTemperatureAsync() (Inherited from Bmx280Base)
ReadTemperatureSampling() (Inherited from Bmxx80Base)
Reset()

When called, the device is reset using the complete power-on-reset procedure. The device will reset to the default configuration.

(Inherited from Bmxx80Base)
SetDefaultConfiguration()

Sets the default configuration for the sensor.

SetDefaultConfiguration()

Sets the default configuration for the sensor.

(Inherited from Bmx280Base)
SetFilterMode(FilteringMode) (Inherited from Bmx280Base)
SetHumiditySampling(Sampling)
SetPowerMode(Bmx280PowerMode)

Sets the power mode to the given mode

(Inherited from Bmx280Base)
SetPressureSampling(Sampling) (Inherited from Bmxx80Base)
SetStandbyTime(StandbyTime) (Inherited from Bmx280Base)
SetTemperatureSampling(Sampling) (Inherited from Bmxx80Base)
TryReadAltitude(Length)

Calculates the altitude in meters from the mean sea-level pressure.

(Inherited from Bmx280Base)
TryReadAltitude(Pressure, Length)

Calculates the altitude in meters from the specified sea-level pressure(in hPa).

(Inherited from Bmx280Base)
TryReadHumidity(Ratio)

Reads the humidity. A return value indicates whether the reading succeeded.

TryReadHumidity(RelativeHumidity)

Reads the humidity. A return value indicates whether the reading succeeded.

TryReadPressure(Pressure)

Reads the pressure. A return value indicates whether the reading succeeded.

(Inherited from Bmx280Base)
TryReadPressureCore(Pressure, Boolean)

Performs a pressure reading.

(Inherited from Bmx280Base)
TryReadTemperature(Temperature)

Reads the temperature. A return value indicates whether the reading succeeded.

(Inherited from Bmx280Base)
TryReadTemperatureCore(Temperature)

Performs a temperature reading.

(Inherited from Bmx280Base)

Applies to