Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscreteSensorValue ¶
type DiscreteSensorValue struct {
// the sensor value
Value float64
// the timestamp of the sensor value
Timestamp time.Time
// the alias of the sensor value, eg. 1 = ON; 0 = OFF
Alias string
// the duration of this sensor value (until the next value)
LengthInSeconds int64
}
DiscreteSensorValue represents a discrete value
type DiscreteValueQuery ¶
type Gateway ¶
type Gateway interface {
// SensorDiscreteValueQuery returns a slice of Discrete Sensor Values
SensorDiscreteValueQuery(context.Context, *DiscreteValueQuery) ([]DiscreteSensorValue, error)
SensorAverageQuery(context.Context, *SensorAverageQuery) ([]SensorAverageResult, error)
}
func NewAdapter ¶
func NewAdapter(client restclient.RestClient, env types.Environment) Gateway
type SensorAverageQuery ¶
type SensorAverageResult ¶
Click to show internal directories.
Click to hide internal directories.