sds011

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Device = "/dev/ttyUSB0"
)

Functions

func Sensor

func Sensor(devs ...string) *sensor

Types

type Connection

type Connection interface {
	Write(message []byte) (int, error)
	Read(response []byte) (int, error)
}

type Measurement

type Measurement struct {
	ID    uint16
	PM2_5 float32
	PM10  float32
}

Jump to

Keyboard shortcuts

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