2019-06-13 19:25:32 +00:00
|
|
|
package sensor
|
|
|
|
|
2019-06-17 21:37:48 +00:00
|
|
|
import (
|
2020-01-10 18:42:19 +00:00
|
|
|
"time"
|
2020-06-10 19:13:05 +00:00
|
|
|
|
|
|
|
"git.cryptic.systems/volker.raschek/flucky/pkg/types"
|
2019-06-17 21:37:48 +00:00
|
|
|
)
|
2019-06-13 19:25:32 +00:00
|
|
|
|
2019-06-25 20:22:34 +00:00
|
|
|
type Sensor interface {
|
2020-01-10 21:03:49 +00:00
|
|
|
GetTicker() *time.Ticker
|
2020-09-21 17:36:42 +00:00
|
|
|
|
|
|
|
// Read single measured values from sensor
|
2019-07-02 20:33:01 +00:00
|
|
|
Read() ([]*types.MeasuredValue, error)
|
2019-06-13 19:25:32 +00:00
|
|
|
}
|