mqtt

package
v0.0.0-...-aee627c Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Broker   string `toml:"broker"`
	ClientID string `toml:"client_id"`
	Username string `toml:"username"`
	Password string `toml:"password"`
}

type Service

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

func Connect

func Connect(c *Config) *Service

func (*Service) Close

func (s *Service) Close()

func (*Service) HandleBotMessage

func (s *Service) HandleBotMessage(c xmpp.Sender, msg stanza.Message) bool

func (*Service) HandleSchalterStateChange

func (s *Service) HandleSchalterStateChange(open bool)

Jump to

Keyboard shortcuts

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