AHT20.Measurement (aht20 v0.4.2) View Source

One sensor measurement report.

Link to this section Summary

Functions

Converts raw sensor output into human-readable format.

Link to this section Types

Specs

t() :: %AHT20.Measurement{
  dew_point_c: number(),
  humidity_rh: number(),
  temperature_c: number(),
  timestamp_ms: number()
}

Link to this section Functions

Specs

from_sensor_output(<<_::56>>) :: t()

Converts raw sensor output into human-readable format.

iex> measurement = AHT20.Measurement.from_sensor_output(<<28, 38, 154, 118, 66, 231, 118>>)
...> measurement.temperature_c
28.26671600341797