BMP280.Measurement (bmp280 v0.2.1) View Source

One measurement from the sensor

This module holds one measurement from the sensor in SI units. Helper functions are available non-SI units.

Link to this section Summary

Functions

Return the estimated altitude

Return the pressure in the specified units

Return the temperature in the specified units

Link to this section Types

Specs

t() :: %BMP280.Measurement{
  altitude_m: number(),
  humidity_rh: number(),
  pressure_pa: number(),
  temperature_c: number()
}

Link to this section Functions

Link to this function

altitude(measurement, units \\ :meters)

View Source

Specs

altitude(t(), :meters | :feet) :: number()

Return the estimated altitude

Link to this function

pressure(measurement, units \\ :pascal)

View Source

Specs

pressure(t(), :pascal | :in_hg) :: number()

Return the pressure in the specified units

Link to this function

temperature(measurement, units \\ :celsius)

View Source

Specs

temperature(t(), :celsius | :fahrenheit) :: number()

Return the temperature in the specified units