firmware

package
v0.0.6-beta Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoCode   = errors.New("can not process request: switch has no code entry")
	ErrBlocked  = errors.New("can not process request now: sender busy")
	ErrDisabled = errors.New("hardware is currently disabled")
)

Functions

func Free

func Free() error

func Init

func Init() error

func SendCode

func SendCode(code int) error

Sends a code without any preproccessing

func SetPower

func SetPower(switchId string, powerOn bool) error

If the sender's hardware is not blocked, the code corresponding to the function's input is sent Returns an error if the sender is uninitialized or the switch has no entry in the config file

Types

This section is empty.

Jump to

Keyboard shortcuts

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