common

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvHostAddress = "ESPHOME_ADDRESS"
	EnvPassword    = "ESPHOME_PASSWORD"
)

Variables

View Source
var (
	HostAddressFlag = flag.String("address", "", "esphome node hostname or IP with port. example: my_esphome.local:6053")
	PasswordFlag    = flag.String("password", "", "esphome node API password")
	TimeoutFlag     = flag.Duration("timeout", 10*time.Second, "communication timeout")
)

Functions

func GetClient

func GetClient(handlerFunc func(msg proto.Message)) (*esphome.Client, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL