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