mqtt

package
Version: v0.0.0-...-dbc11f2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Loader

func Loader(L *lua.LState) int

Loader loads the actual mqtt package

func Preload

func Preload(L *lua.LState)

Preload reloads the envel.mqtt package

func PreloadWithName

func PreloadWithName(name string, L *lua.LState)

Types

type Binding

type Binding struct{}

Binding implements plugin.Binding

func (Binding) Preload

func (Binding) Preload(L *lua.LState) error

Preload preloads the dbus module

type MQTT

type MQTT struct {
	mqtt.Client
}

MQTT is stored inside a UserData Lua value and provides access to the mqtt client

func NewMQTTClient

func NewMQTTClient(opts *mqtt.ClientOptions) (*MQTT, error)

NewMQTTClient creates a new MQTT client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL