SHT4X (sht4x v0.1.1) View Source

Use Sensirion SHT4X humidity and temperature sensors in Elixir

Link to this section Summary

Types

Which I2C bus to use (defaults to "i2c-1")

Functions

Returns a specification to start this module under a supervisor.

Link to this section Types

Specs

bus_name() :: binary()

Which I2C bus to use (defaults to "i2c-1")

Specs

options() :: [GenServer.option() | {:bus_name, bus_name()}]

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

measure(server, opts \\ [])

View Source

Specs

measure(GenServer.server(), Keyword.t()) ::
  {:ok, SHT4X.Measurement.t()} | {:error, any()}
Link to this function

start_link(init_arg \\ [])

View Source

Specs

start_link(options()) :: GenServer.on_start()