mqtt

package
v0.0.0-...-2d1a207 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: CC0-1.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const QOS = 1

Variables

This section is empty.

Functions

func Publish

func Publish(topic string, payload interface{}) error

func Start

func Start()

func Subscribe

func Subscribe(topic string, cb Callback)

func SubscribeBlocking

func SubscribeBlocking(topic string, timeout time.Duration) ([]byte, error)

func Unsubscribe

func Unsubscribe(topic string)

Types

type Callback

type Callback func(topic string, payload []byte)

Jump to

Keyboard shortcuts

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