lijian bc677c9466 first commit 6 gadi atpakaļ
..
packets bc677c9466 first commit 6 gadi atpakaļ
CONTRIBUTING.md bc677c9466 first commit 6 gadi atpakaļ
DISTRIBUTION bc677c9466 first commit 6 gadi atpakaļ
LICENSE bc677c9466 first commit 6 gadi atpakaļ
README.md bc677c9466 first commit 6 gadi atpakaļ
about.html bc677c9466 first commit 6 gadi atpakaļ
client.go bc677c9466 first commit 6 gadi atpakaļ
components.go bc677c9466 first commit 6 gadi atpakaļ
edl-v10 bc677c9466 first commit 6 gadi atpakaļ
epl-v10 bc677c9466 first commit 6 gadi atpakaļ
filestore.go bc677c9466 first commit 6 gadi atpakaļ
memstore.go bc677c9466 first commit 6 gadi atpakaļ
message.go bc677c9466 first commit 6 gadi atpakaļ
messageids.go bc677c9466 first commit 6 gadi atpakaļ
net.go bc677c9466 first commit 6 gadi atpakaļ
notice.html bc677c9466 first commit 6 gadi atpakaļ
oops.go bc677c9466 first commit 6 gadi atpakaļ
options.go bc677c9466 first commit 6 gadi atpakaļ
ping.go bc677c9466 first commit 6 gadi atpakaļ
router.go bc677c9466 first commit 6 gadi atpakaļ
store.go bc677c9466 first commit 6 gadi atpakaļ
token.go bc677c9466 first commit 6 gadi atpakaļ
topic.go bc677c9466 first commit 6 gadi atpakaļ
trace.go bc677c9466 first commit 6 gadi atpakaļ

README.md

Eclipse Paho MQTT Go client

This repository contains the source code for the Eclipse Paho MQTT Go client library.

This code builds a library which enable applications to connect to an MQTT broker to publish messages, and to subscribe to topics and receive published messages.

This library supports a fully asynchronous mode of operation.

Installation and Build

This client is designed to work with the standard Go tools, so installation is as easy as:

go get git.eclipse.org/gitroot/paho/org.eclipse.paho.mqtt.golang.git

The client depends on Google's websockets package, also easily installed with the command:

go get code.google.com/p/go.net/websocket

Usage and API

Detailed API documentation is available by using to godoc tool, or can be browsed online using the godoc.org service.

Make use of the library by importing it in your Go client source code. For example,

import MQTT "git.eclipse.org/gitroot/paho/org.eclipse.paho.mqtt.golang.git"

Samples are available in the /samples directory for reference.

Runtime tracing

Tracing is enabled by assigning logs (from the Go log package) to the logging endpoints, ERROR, CRITICAL, WARN and DEBUG

Reporting bugs

Please report bugs under the "MQTT-Go" Component in Eclipse Bugzilla for the Paho Technology project. This is a very new library as of Q1 2014, so there are sure to be bugs.

More information

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.