Documentation
¶
Index ¶
- Variables
- func NewSensor(ctx context.Context, deps resource.Dependencies, conf resource.Config, ...) (sensor.Sensor, error)
- type CloudConfig
- type Config
- func (c *Config) Close(ctx context.Context) error
- func (c *Config) Readings(ctx context.Context, extra map[string]interface{}) (map[string]interface{}, error)
- func (c *Config) Ready(ctx context.Context, extra map[string]interface{}) (bool, error)
- func (c *Config) Reconfigure(ctx context.Context, deps resource.Dependencies, conf resource.Config) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Description = "Simple PWM fan controller for Viam"
View Source
var Model = resource.NewModel("viam-soleng", "fan", "pwm")
View Source
var PrettyName = "Raspberry Pi Clock Sensor"
View Source
var Version = utils.Version
Functions ¶
Types ¶
type CloudConfig ¶
type Config ¶
type Config struct { resource.Named FanPin board.GPIOPin Board *board.Board TemperatureTable map[float64]float64 Temps []float64 Sensor sensor.Sensor SensorValueField string SensorValueRegex *regexp.Regexp // contains filtered or unexported fields }
func (*Config) Reconfigure ¶
Click to show internal directories.
Click to hide internal directories.