Skip to content

Instantly share code, notes, and snippets.

package main
/*
This is an example of using the paho.golang (supporting MQTT5) library in a way where
the connect call will block and wait for the connection to go down.
I use something like this as I need to generate a TLS cert before each connect.
*/
import (