mqtt

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 17 Imported by: 1

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 added in v1.11.0

func (m *MQTT) GetComponentMetadata() (metadataInfo metadata.MetadataMap)

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