PMS7003

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

README

raspberry-pi-air-quality-monitor

Air Quality Monitor System build using Raspberry Pi and PMS 7003 Sensor

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mode

type Mode string
const (
	ActiveMode  Mode = "ACTIVE"
	PassiveMode      = "PASSIVE"
)

type PMS7003Device

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

func Open

func Open(serialDevice string, mode Mode) (device PMS7003Device, err error)

func (*PMS7003Device) Close

func (r *PMS7003Device) Close()

func (*PMS7003Device) Read

func (r *PMS7003Device) Read() (sensorValue PMS7003SensorValue, err error)

type PMS7003SensorValue

type PMS7003SensorValue struct {
	// StartByte1, StartByte2                                                                    byte
	Framelen                                                                                  uint16 // :2
	PM10CF10Standard, PM25CF10Standard, PM100CF10Standard                                     uint16 // 2:4, 4:6, 6:8
	PM10Atmospheric, PM25Atmospheric, PM100Atmospheric                                        uint16
	ParticlesGT03, ParticlesGT05, ParticlesGT10, ParticlesGT25, ParticlesGT50, ParticlesGT100 uint16
	Unused                                                                                    uint16
	Checksum                                                                                  uint16
}

func (PMS7003SensorValue) String

func (t PMS7003SensorValue) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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