checking git commits
This commit is contained in:
@@ -289,7 +289,6 @@ func main() {
|
|||||||
log.Fatalf("Failed to connect to MQTT broker: %v", token.Error())
|
log.Fatalf("Failed to connect to MQTT broker: %v", token.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
// Subscribe to topics
|
|
||||||
for topic, qos := range topics {
|
for topic, qos := range topics {
|
||||||
if token := client.Subscribe(topic, qos, messageHandler); token.Wait() && token.Error() != nil {
|
if token := client.Subscribe(topic, qos, messageHandler); token.Wait() && token.Error() != nil {
|
||||||
log.Fatalf("Failed to subscribe to topic '%s': %v", topic, token.Error())
|
log.Fatalf("Failed to subscribe to topic '%s': %v", topic, token.Error())
|
||||||
|
|||||||
Reference in New Issue
Block a user