2019-06-13 19:25:32 +00:00
|
|
|
package sensor
|
|
|
|
|
2019-06-15 13:58:41 +00:00
|
|
|
import "github.com/go-flucky/flucky/pkg/types"
|
2019-06-13 19:25:32 +00:00
|
|
|
|
|
|
|
// HumiditySensor is a interface to describe required functions to measure humidities
|
|
|
|
type HumiditySensor interface {
|
|
|
|
GetSensorModel() types.SensorModel
|
|
|
|
ReadHumidity() (*types.Humidity, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
// TemperatureSensor is a interface to describe required functions to measure temperatures
|
|
|
|
type TemperatureSensor interface {
|
|
|
|
GetSensorModel() types.SensorModel
|
|
|
|
ReadTemperature() (*types.Temperature, error)
|
|
|
|
}
|