mqttclient

package
v0.0.0-...-3098bc4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(id string, uri *url.URL, topics []string, callback mqtt.MessageHandler) mqtt.Client

New will create new mqtt client and start handling messages from specified topic

func Publish

func Publish(client mqtt.Client, topic string, retained byte, qos bool, message string) error

Publish sends message to mqtt broker and handles errors

Types

This section is empty.

Jump to

Keyboard shortcuts

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