Remove unneeded getStatus()
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user