mqtt

package
v0.0.0-...-ebb33e4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMQTT

func NewMQTT(logger logger.Logger) bindings.InputOutputBinding

NewMQTT returns a new MQTT instance.

Types

type MQTT

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

MQTT allows sending and receiving data to/from an MQTT broker.

func (*MQTT) Close

func (m *MQTT) Close() error

func (*MQTT) GetComponentMetadata

func (m *MQTT) GetComponentMetadata() map[string]string

GetComponentMetadata returns the metadata of the component.

func (*MQTT) Init

func (m *MQTT) Init(ctx context.Context, metadata bindings.Metadata) (err error)

Init does MQTT connection parsing.

func (*MQTT) Invoke

func (*MQTT) Operations

func (m *MQTT) Operations() []bindings.OperationKind

func (*MQTT) Read

func (m *MQTT) Read(ctx context.Context, handler bindings.Handler) error

Jump to

Keyboard shortcuts

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