iot

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IoT

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

func New

func New(brokerAddr string, username string, password string, clientID string, cleanSession bool) *IoT

func (*IoT) Connect

func (iot *IoT) Connect() (mqtt.Token, error)

func (*IoT) Publish

func (iot *IoT) Publish(topic string, qos byte, retained bool, payload interface{}) error

func (*IoT) Subscribe

func (iot *IoT) Subscribe(topic string, qos byte, callback mqtt.MessageHandler) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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