Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PMS7003Device ¶
type PMS7003Device struct {
// contains filtered or unexported fields
}
func (*PMS7003Device) Close ¶
func (r *PMS7003Device) Close()
func (*PMS7003Device) Read ¶
func (r *PMS7003Device) Read() (sensorValue PMS7003SensorValue, err error)
func (*PMS7003Device) Sleep ¶ added in v0.0.2
func (d *PMS7003Device) Sleep() (err error)
func (*PMS7003Device) WakeUp ¶ added in v0.0.2
func (d *PMS7003Device) WakeUp() (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
Click to show internal directories.
Click to hide internal directories.