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.
- 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