-
Notifications
You must be signed in to change notification settings - Fork 537
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: Id535436ee9da264fba604974f2ce2cb365435f86 Signed-off-by: Seth Hoenig <[email protected]>
- Loading branch information
Showing
8 changed files
with
198 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Compiled Object files, Static and Dynamic libs (Shared Objects) | ||
*.o | ||
*.a | ||
*.so | ||
|
||
# Folders | ||
_obj | ||
_test | ||
|
||
# Architecture specific extensions/prefixes | ||
*.[568vq] | ||
[568vq].out | ||
|
||
*.cgo1.go | ||
*.cgo2.c | ||
_cgo_defun.c | ||
_cgo_gotypes.go | ||
_cgo_export.* | ||
|
||
_testmain.go | ||
|
||
*.exe | ||
|
||
*.msg | ||
*.lok | ||
|
||
samples/trivial | ||
samples/trivial2 | ||
samples/sample | ||
samples/reconnect | ||
samples/ssl | ||
samples/custom_store | ||
samples/simple | ||
samples/stdinpub | ||
samples/stdoutsub | ||
samples/routing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,63 @@ | ||
go-mqtt | ||
======= | ||
Eclipse Paho MQTT Go client | ||
=========================== | ||
|
||
An mqtt v3.1 client written in Go | ||
|
||
This repository contains the source code for the [Eclipse Paho](http://eclipse.org/paho) MQTT Go client library. | ||
|
||
This code builds a library which enable applications to connect to an [MQTT](http://mqtt.org) 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](http://godoc.org/code.google.com/p/go.net/websocket) 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](http://godoc.org/git.eclipse.org/gitroot/paho/org.eclipse.paho.mqtt.golang.git) 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 using the `SetTraceLevel` option when creating a ClientOptions struct. See the ClientOptions | ||
documentation for more details. | ||
|
||
|
||
Reporting bugs | ||
-------------- | ||
|
||
Please report bugs under the "MQTT-Go" Component in [Eclipse Bugzilla](http://bugs.eclipse.org/bugs/) 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](https://dev.eclipse.org/mailman/listinfo/paho-dev). | ||
|
||
General questions about the MQTT protocol are discussed in the [MQTT Google Group](https://groups.google.com/forum/?hl=en-US&fromgroups#!forum/mqtt). | ||
|
||
There is much more information available via the [MQTT community site](http://mqtt.org). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters