sensor

package
v0.0.0-...-27f3ab6 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSensors

func BuildSensors(generalSettings config.General, sensors config.Sensors, mqttConnections map[string]mqtt.Client) map[string]Sensor

Types

type DataListener

type DataListener interface {
	OnData(dataName string, data []byte, err error)
}

type DataObserver

type DataObserver struct {
	Extractors map[string]data_extractor.Extractor
	// contains filtered or unexported fields
}

func (*DataObserver) AddListener

func (d *DataObserver) AddListener(dl DataListener)

func (*DataObserver) RemoveListener

func (d *DataObserver) RemoveListener(dl DataListener)

type Sensor

type Sensor struct {
	Sensor     sensor.Sensor
	Extractors map[string]data_extractor.Extractor
}

Jump to

Keyboard shortcuts

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