AHT20 (aht20 v0.2.0) View Source

A collection of convenient functions to use this library.

Link to this section Summary

Link to this section Functions

Specs

read(pid()) :: {:ok, AHT20.Measurement.t()} | {:error, any()}

Specs

read_data(pid()) :: {:ok, AHT20.Measurement.t()} | {:error, any()}
read_data(AHT20.Sensor.t()) :: {:ok, AHT20.Measurement.t()} | {:error, any()}

Specs

read_state(pid()) :: {:ok, AHT20.State.t()} | {:error, any()}
read_state(AHT20.Sensor.t()) :: {:ok, AHT20.State.t()} | {:error, any()}

Specs

start(AHT20.Sensor.config()) :: {:ok, AHT20.Sensor.t()} | {:error, any()}

Specs

start_link(AHT20.Sensor.config()) :: {:ok, pid()} | {:error, any()}