mqtt

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Integration

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

Integration implements a MQTT Integration.

func NewIntegration

func NewIntegration(conf config.Config) (*Integration, error)

NewIntegration creates a new Integration.

func (*Integration) PublishBasestationEvent

func (integ *Integration) PublishBasestationEvent(bsEui common.EUI64, event string, pb *bs.BasestationUplink) error

Publish basestation messages.

func (*Integration) PublishEndnodeEvent

func (integ *Integration) PublishEndnodeEvent(bsEui common.EUI64, event string, pb *bs.EndnodeUplink) error

Publish endnode messages.

func (*Integration) PublishState

func (integ *Integration) PublishState(ctx context.Context, bsEui common.EUI64, pb *bs.BasestationState) error

Publish basestation messages.

func (*Integration) SetBasestationSubscription

func (integ *Integration) SetBasestationSubscription(subscribe bool, bsEui common.EUI64) error

Updates the subscription for the given EUI.

func (*Integration) SetServerCommandHandler

func (integ *Integration) SetServerCommandHandler(f func(*bs.ServerCommand))

Set handler for server command messages

func (*Integration) SetServerResponseHandler

func (integ *Integration) SetServerResponseHandler(f func(*bs.ServerResponse))

Set handler for server command messages

func (*Integration) Start

func (integ *Integration) Start() error

Start the integration.

func (*Integration) Stop

func (integ *Integration) Stop() error

Stop the integration.

Jump to

Keyboard shortcuts

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