miflora

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HistoricMeasurement

type HistoricMeasurement struct {
	model.Measurement
	DeviceTime time.Time
}

func (*HistoricMeasurement) UnmarshalBinary

func (m *HistoricMeasurement) UnmarshalBinary(r io.Reader) error

type MiFlora

type MiFlora struct {
	// contains filtered or unexported fields
}

func New

func New(device *linux.Device) *MiFlora

func (*MiFlora) Exporter

func (m *MiFlora) Exporter(ctx context.Context) error

func (*MiFlora) HistoricValues

func (m *MiFlora) HistoricValues(ctx context.Context) error

func (*MiFlora) Realtime

func (m *MiFlora) Realtime(ctx context.Context) error

func (*MiFlora) Scan

func (m *MiFlora) Scan(ctx context.Context) error

func (*MiFlora) WithLogger

func (m *MiFlora) WithLogger(l log.Logger) *MiFlora

type Sensor

type Sensor struct {
	// contains filtered or unexported fields
}

type SensorSlice

type SensorSlice []*Sensor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL