Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Measurement ¶
Measurement is the result of a Read operation.
type Meter ¶
type Meter struct {
// contains filtered or unexported fields
}
Meter gives access to the CO2 Meter. Make sure to call Open before Read.
func (*Meter) Open ¶
Open will open the device file specified in the path which is usually something like /dev/hidraw2.
func (*Meter) Read ¶
func (m *Meter) Read() (*Measurement, error)
Read will read from the device file until it finds a temperature and co2 measurement. Before it can be used the device file needs to be opened via Open.
Click to show internal directories.
Click to hide internal directories.