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() {
Log.i(TAG, "onCreate");
if (client == null) {
Log.i(TAG, "connecting");
client = Mqtt5Client.builder()
.identifier(UUID.randomUUID().toString())
.serverHost(mqttHost)
@@ -85,7 +84,6 @@ public class MqttService extends Service {
} else {
// Handle successful subscription, e.g. logging or incrementing a metric
Log.i(TAG, "subscribe ok");
getStatus();
}
});
}
@@ -117,7 +115,6 @@ public class MqttService extends Service {
} else {
// handle successful publish, e.g. logging or incrementing a metric
Log.i(TAG, "published " + message + " on " + topic);
getStatus();
}
});
} else {