Documentation ¶
Index ¶
Constants ¶
View Source
const ( // HumOps indicates relative humidity in units of 0.01%. HumOps ops // TempOps indicates temperature in Kelvin (unit of 1/16th K). TempOps // Co2Ops indicates CO₂ concentration in ppm. Co2Ops )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func Open ¶
func Open(setters ...OptionSetter) (*Device, error)
func (*Device) ReadPacket ¶
ReadPacket reads one Packet from the monitor. An error will be returned on an I/O error or if a message could not be read or decoded.
type OptionSetter ¶
type OptionSetter func(opts *options)
func WithPath ¶
func WithPath(path string) OptionSetter
WithPath sets a device file path. Default value is `/dev/hidraw0`.
Click to show internal directories.
Click to hide internal directories.