sensor v0.1.6 Sensor.Temp.Dht.TestDevice

This module will simulate the DHT temp sensor for testing

Summary

Functions

Gets the temperature measurement from the sensor and always returns the same result

Functions

read(type, gpio)

Gets the temperature measurement from the sensor and always returns the same result

Examples

iex> Sensor.Temp.Dht.TestDevice.read(11, 4)
{:ok, %{temp: 20.0, humidity: 34.0}}