Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 598 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 598 Bytes

gochat-mqtt

A simple chat program to demonstrate MQTT with Go, using the Eclipse Paho Go client

Build

Requires Go, obviously...

Set the GOPATH and GOBIN variables appropriately, then...

$ go get git.eclipse.org/gitroot/paho/org.eclipse.paho.mqtt.golang.git
$ go install gochat-mqtt.go

Run

$ gochat-mqtt --help
Usage of gochat-mqtt:
  -name="user201": Username to be displayed
  -room="gochat": The chat room to enter. default 'gochat'
  -server="tcp://iot.eclipse.org:1883": The MQTT server to connect to