diff --git a/main.go b/main.go index dca8194..ae2372b 100644 --- a/main.go +++ b/main.go @@ -227,7 +227,7 @@ func wingLoop(wing *WingClient, MQTTClient mqtt.Client, MQTTTopic *string) { if !wingCheckResult.IsOK { sendAlert := false var msgs []string - level := "warning" + level := "warn" for _, reason := range wingCheckResult.NotOKReasons { // First let's build the message(s) we want to send. We might have multiple reasons. // Even if the reason we're iterating on right now should not be sent out yet, we should @@ -295,10 +295,10 @@ func newMQTTClient(broker *string, username *string, password *string, clientID opts := mqtt.NewClientOptions() opts.SetTLSConfig(&tlsConfig) opts.AddBroker(*broker) - opts.SetConnectRetry(true) - opts.SetAutoReconnect(true) - opts.SetConnectRetryInterval(1 * time.Second) - opts.SetConnectTimeout(5 * time.Second) + //opts.SetConnectRetry(true) + //opts.SetAutoReconnect(true) + //opts.SetConnectRetryInterval(1 * time.Second) + opts.SetConnectTimeout(2 * time.Second) opts.SetClientID(*clientID) if *username != "" { opts.SetUsername(*username)