tplink2mqtt

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: 9 Imported by: 0

Documentation

Overview

Package tplink2mqtt contains a handler for handling tplink updates and piping them to mqtt.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler handles zigbee2mqtt messages

func New

func New(cfg *config.Config, destinations []destination.Destination, listeners []listener.Listener) *Handler

New creates a new handler.

func (*Handler) Connected

func (h *Handler) Connected(client mqtt.Client)

Connected is a handler which is called when the initial connection to the mqtt server is established.

func (*Handler) Disconnected

func (h *Handler) Disconnected(client mqtt.Client, err error)

Disconnected is a handler which is called when the connection to the mqtt server is severed.

Jump to

Keyboard shortcuts

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