Documentation ¶
Overview ¶
Package ds18b20 implements a 1-wire temperature sensor
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.2.36
type Config struct { resource.TriviallyValidateConfig UniqueID string `json:"unique_id"` }
Config is used for converting config attributes.
type Sensor ¶
type Sensor struct { resource.Named resource.AlwaysRebuild resource.TriviallyCloseable OneWireID string OneWireFamily string }
Sensor is a 1-wire Sensor device.
func (*Sensor) ReadTemperatureCelsius ¶
ReadTemperatureCelsius returns current temperature in celsius.
Click to show internal directories.
Click to hide internal directories.