Skip to content

Commit

Permalink
Fork MqttClientImpl to fix vert-x3/vertx-mqtt#109
Browse files Browse the repository at this point in the history
This change forks the MqttClientImpl from vertx-mqtt, since the
connection handling is broken again.
  • Loading branch information
ctron committed Mar 19, 2019
1 parent dd4d8f3 commit bdf1029
Show file tree
Hide file tree
Showing 2 changed files with 1,053 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import de.dentrassi.hono.demo.common.Payload;
import de.dentrassi.hono.demo.common.Register;
import de.dentrassi.hono.demo.common.Tls;
import de.dentrassi.hono.simulator.mqtt.vertx.MqttClientImpl;
import io.glutamate.lang.Environment;
import io.netty.handler.codec.mqtt.MqttConnectReturnCode;
import io.netty.handler.codec.mqtt.MqttQoS;
Expand Down Expand Up @@ -93,7 +94,7 @@ public Device(final Vertx vertx, final String username, final String deviceId, f
options.setUsername(username + "@" + tenant);
options.setPassword(password);

this.client = MqttClient.create(vertx, options);
this.client = new MqttClientImpl(vertx, options);

this.client.publishCompletionHandler(this::publishComplete);
this.client.closeHandler(v -> connectionLost(null));
Expand Down
Loading

0 comments on commit bdf1029

Please sign in to comment.