Markus Pesch
5220eac16b
changes: - remove remote operations - add function to write measured values into a channel - add get humidity sensors from config - add get temperature sensors from config - remove FileLogger - exclude some functions from pkf into internal
16 lines
478 B
Go
16 lines
478 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 {
|
|
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)
|
|
}
|