monitor

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

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

Monitor is a USB CO2 monitor

func New

func New(setters ...OptionSetter) (*Monitor, error)

func (*Monitor) Close

func (m *Monitor) Close() error

func (*Monitor) Measurements

func (m *Monitor) Measurements() (string, bool)

type OptionSetter

type OptionSetter func(opts *options)

func WithDevOptions added in v1.7.1

func WithDevOptions(setters ...co2mon.OptionSetter) OptionSetter

func WithReadDelay

func WithReadDelay(readDelay time.Duration) OptionSetter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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