device

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperationCarbonDioxide = 'P'
	OperationTemperature   = 'B'
	OperationHumidity      = 'A'
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AirController

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

func New added in v1.4.0

func New() AirController

func (*AirController) Close

func (ac *AirController) Close() error

func (*AirController) Open

func (ac *AirController) Open(path string) error

func (*AirController) Read

func (ac *AirController) Read() (carbonDioxide float64, temperature float64, humidity float64, err error)

Jump to

Keyboard shortcuts

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