Skip to content

Commit

Permalink
Logging message publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
h00s committed Jan 21, 2024
1 parent 53f8975 commit 9cd27d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mqtt/mqtt.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func (m *MQTT) Publish(topic string, message string) {
if token := m.client.Publish(topic, 0, false, message); token.Wait() && token.Error() != nil {
log.Println(token.Error())
}
log.Println("Published to MQTT topic: ", topic)
}
}()
}
Expand Down

0 comments on commit 9cd27d4

Please sign in to comment.