This file contains hidden or 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
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 ( |