1
0
Fork 0
mirror of https://github.com/Luzifer/mqttcli.git synced 2024-11-08 06:40:08 +00:00

Fix: Set client id

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-02-07 13:36:11 +01:00
parent 46ed69eff1
commit 5117cc2519
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -67,6 +67,7 @@ func main() {
client := mqtt.NewClient(
mqtt.NewClientOptions().
AddBroker(cfg.MQTTBroker).
SetClientID(cfg.MQTTClientID).
SetUsername(cfg.MQTTUser).
SetPassword(cfg.MQTTPass),
)