common

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

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")
	EncryptionKeyFlag = flag.String("encryption-key", "", "esphome node API encryption key")
	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