Remove unneeded getStatus()

This commit is contained in:
2022-04-26 22:31:16 +02:00
parent fd65f7fd3e
commit a027f8068f
@@ -33,7 +33,6 @@ public class MqttService extends Service {
public void onCreate() { public void onCreate() {
Log.i(TAG, "onCreate"); Log.i(TAG, "onCreate");
if (client == null) { if (client == null) {
Log.i(TAG, "connecting");
client = Mqtt5Client.builder() client = Mqtt5Client.builder()
.identifier(UUID.randomUUID().toString()) .identifier(UUID.randomUUID().toString())
.serverHost(mqttHost) .serverHost(mqttHost)
@@ -85,7 +84,6 @@ public class MqttService extends Service {
} else { } else {
// Handle successful subscription, e.g. logging or incrementing a metric // Handle successful subscription, e.g. logging or incrementing a metric
Log.i(TAG, "subscribe ok"); Log.i(TAG, "subscribe ok");
getStatus();
} }
}); });
} }
@@ -117,7 +115,6 @@ public class MqttService extends Service {
} else { } else {
// handle successful publish, e.g. logging or incrementing a metric // handle successful publish, e.g. logging or incrementing a metric
Log.i(TAG, "published " + message + " on " + topic); Log.i(TAG, "published " + message + " on " + topic);
getStatus();
} }
}); });
} else { } else {