sensor

package
v0.0.0-...-ad76204 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrightnessSensor

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

func NewBrightnessSensor

func NewBrightnessSensor(minValue int, maxValue int) *BrightnessSensor

func (*BrightnessSensor) CollectData

func (bs *BrightnessSensor) CollectData(centralChan chan<- SensorData, iterationsCount int, wg *sync.WaitGroup)

type HumiditySensor

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

func (*HumiditySensor) CollectData

func (hs *HumiditySensor) CollectData(centralChan chan<- SensorData, iterationsCount int, wg *sync.WaitGroup)

type Sensor

type Sensor interface {
	CollectData(centralCh chan<- SensorData, iterationsCount int, wg *sync.WaitGroup)
}

func CreateHumiditySensor

func CreateHumiditySensor(minValue int, maxValue int) Sensor

type SensorData

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

func NewSensorData

func NewSensorData(t string, v int) SensorData

type TemperatureSensor

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

func NewTemperatureSensor

func NewTemperatureSensor(minValue int, maxValue int) *TemperatureSensor

func (*TemperatureSensor) CollectData

func (ts *TemperatureSensor) CollectData(centralChan chan<- SensorData, iterationsCount int, wg *sync.WaitGroup)

Jump to

Keyboard shortcuts

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