Eclipse Paho MQTT Go client
This repository contains the source code for the Eclipse Paho MQTT Go client library.
Installation and Build
This client is designed to work with the standard Go tools, so installation is as easy as:
go get github.com/eclipse/paho.golang
The main library is in the
paho folder (so for general usage
import "github.com/eclipse/paho.golang/paho"). There are
examples off this folder in
paho/cmd and extensions in
import "github.com/eclipse/paho.golang/autopaho") is a fairly simple wrapper that automates the connection
mqtts) and will automatically reconnect should the connection drop. For many users this package
will provide a simple way to connect and publish/subscribe as well as demonstrating how to use the
autopaho/examples/docker provides a full example using docker to run a publisher and subscriber (connecting to
Please report bugs by raising issues for this project in github https://github.com/eclipse/paho.golang/issues
Discussion of the Paho clients takes place on the Eclipse paho-dev mailing list.
General questions about the MQTT protocol are discussed in the MQTT Google Group.
There is much more information available via the MQTT community site.