We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f1d054 commit b467c59Copy full SHA for b467c59
main.go
@@ -9,6 +9,7 @@ import (
9
"time"
10
11
mqtt "github.com/eclipse/paho.mqtt.golang"
12
+ "github.com/google/uuid"
13
"github.com/joho/godotenv"
14
"github.com/prometheus/client_golang/prometheus/promhttp"
15
"github.com/redis/go-redis/v9"
@@ -110,6 +111,7 @@ func main() {
110
111
112
options := mqtt.NewClientOptions()
113
options.AddBroker(mqttAddress)
114
+ options.SetClientID(uuid.NewString())
115
options.SetUsername(mqttUsername)
116
options.SetPassword(mqttPassword)
117
mqttClient := mqtt.NewClient(options)
0 commit comments