18 lines
516 B
Go
18 lines
516 B
Go
package sensor
|
|
|
|
import "github.com/volker-raschek/flucky/pkg/types"
|
|
|
|
// HumiditySensor is a interface to describe required functions to measure humidities
|
|
type HumiditySensor interface {
|
|
GetEnabled() bool
|
|
GetSensorModel() types.SensorModel
|
|
ReadHumidity() (*types.Humidity, error)
|
|
}
|
|
|
|
// TemperatureSensor is a interface to describe required functions to measure temperatures
|
|
type TemperatureSensor interface {
|
|
GetEnabled() bool
|
|
GetSensorModel() types.SensorModel
|
|
ReadTemperature() (*types.Temperature, error)
|
|
}
|