# Functions
NewPublisher creates and starts a new Publisher that receives new messages via a string channel that can be address has the format: tcp://localhost:1883.
NewSubscriber creates and starts a new subscriber that receives new messages via a string channel that can be address has the format: tcp://localhost:1883.
# Constants
this package can be used to define reading and writing routines that connect to the Mosquitto broker those routines are supposed to run in their own goroutines and either receive or pass events through channels.
# Variables
Debug for debug log messages.
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Message is a simple struct that allows to publish to different topics with a single publisher client connection.
Publisher wraps the mqtt client that is subscribed to a specific topic in a pretty simple to use manner.
Subscriber wraps the mqtt client that is subscribed to a specific topic in a pretty simple to use manner.