mqtt

package
v0.0.0-...-8b67194 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(serverURL string) (mqtt.Client, error)

func Publish

func Publish(mqttClient mqtt.Client, topic string, qos byte, retained bool, value interface{}) error

Publishes a given value to the the broker at the given topic. Non-strings are converted to their string representations.

func Subscribe

func Subscribe(mqttClient mqtt.Client, topic string, qos byte, cb mqtt.MessageHandler) error

func Unsubscribe

func Unsubscribe(mqttClient mqtt.Client, topics []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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