Skip to content

Commit

Permalink
removes code to reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
Ícaro Erasmo Souza Barreiro committed Oct 21, 2024
1 parent 58bbc22 commit fa27fa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 49 deletions.
41 changes: 0 additions & 41 deletions src/main/java/com/icaroerasmo/config/DtTMqttCallBack.java

This file was deleted.

10 changes: 2 additions & 8 deletions src/main/java/com/icaroerasmo/config/MqttConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,9 @@ public IMqttClient mqttClient() throws MqttException {
}

@Bean
@DependsOn({"mqttClient", "registerListeners"})
@DependsOn({"registerListeners"})
public Void listen(IMqttClient mqttClient, List<AbstractListener> listeners) {

DtTMqttCallBack callBack = new DtTMqttCallBack(mqttClient,
listeners.stream().map(AbstractListener::getTopic).toList());

listeners.forEach(listener -> listener.listen());
mqttClient.setCallback(callBack);

listeners.forEach(AbstractListener::listen);
return null;
}

Expand Down

0 comments on commit fa27fa5

Please sign in to comment.