Versions in this module Expand all Collapse all v0 v0.0.11 Jan 29, 2025 Changes in this version + var API = sensor.API + var Description = "A sensor that reports the status of the WiFi connection" + var ErrAdapterNotFound = errors.New("adapter not found") + var ErrNoAdaptersFound = errors.New("no adapters found") + var ErrNotConnected = errors.New("not connected to a network") + var Model = resource.NewModel(utils.Namespace, "hwmonitor", "wifi_monitor") + var PrettyName = "WiFi Monitor Sensor" + var Version = utils.Version + func NewSensor(ctx context.Context, deps resource.Dependencies, conf resource.Config, ...) (sensor.Sensor, error) + type ComponentConfig struct + Adapter string + func (conf *ComponentConfig) Validate(path string) ([]string, error) + type Config struct + 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, _ resource.Dependencies, conf resource.Config) error