standard

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package standard publishes to standard mqtt channels.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options Options) destination.Destination

New creates a new standard destination.

Types

type Options

type Options struct {
}

Options is a struct for storing options for the standard mqtt destination

type Standard

type Standard struct {
	destination.Destination
	// contains filtered or unexported fields
}

Standard is a destination for mqtt events.

func (*Standard) Publish

func (s *Standard) Publish(device *tplink.Device, client mqtt.Client) error

Publish publishes the device state to the standard mqtt destinations

Jump to

Keyboard shortcuts

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