Skip to content

Sample app which publish and subscribe to/from a CloudMQTT broker

Notifications You must be signed in to change notification settings

CloudMQTT/go-mqtt-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go MQTT Example

This is a simple Go example on how to interact with MQTT.

This example sends a messages every second and the same process receive the message and prints it to the console.

Getting started

  • Make sure you have dep installed
  • Clone this repo git clone https://github.com/CloudMQTT/go-mqtt-example.git
  • export CLOUDMQTT_URL=mqtt://<user>:<pass>@<server>.cloudmqtt.com:<port>/<topic>
  • Run make to download dependencies and run the application

About

Sample app which publish and subscribe to/from a CloudMQTT broker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published