You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2019/02/25 12:18:52 UTC

[incubator-plc4x] branch develop updated: - Updated the MQTTBee dependency to the released version of the hivemq-mqtt-client (library was renamed)

This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new 6ba4b8f  - Updated the MQTTBee dependency to the released version of the hivemq-mqtt-client (library was renamed)
6ba4b8f is described below

commit 6ba4b8fe35342fa7c77e19ad98bb212b8f7a776b
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Mon Feb 25 13:18:47 2019 +0100

    - Updated the MQTTBee dependency to the released version of the hivemq-mqtt-client (library was renamed)
---
 examples/hello-connectivity-mqtt/pom.xml                     |  7 +++----
 .../plc4x/java/examples/connectivity/mqtt/MqttConnector.java | 12 ++++++------
 2 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/examples/hello-connectivity-mqtt/pom.xml b/examples/hello-connectivity-mqtt/pom.xml
index f6f6b64..799ec0f 100644
--- a/examples/hello-connectivity-mqtt/pom.xml
+++ b/examples/hello-connectivity-mqtt/pom.xml
@@ -42,11 +42,10 @@
       <version>0.4.0-SNAPSHOT</version>
     </dependency>
 
-    <!-- TODO: Replace this with a release version or comment this module out before releasing. -->
     <dependency>
-      <groupId>org.mqttbee</groupId>
-      <artifactId>mqtt-bee</artifactId>
-      <version>1.0.0-SNAPSHOT</version>
+      <groupId>com.hivemq</groupId>
+      <artifactId>hivemq-mqtt-client</artifactId>
+      <version>1.0.0</version>
     </dependency>
     <dependency>
       <groupId>io.reactivex.rxjava2</groupId>
diff --git a/examples/hello-connectivity-mqtt/src/main/java/org/apache/plc4x/java/examples/connectivity/mqtt/MqttConnector.java b/examples/hello-connectivity-mqtt/src/main/java/org/apache/plc4x/java/examples/connectivity/mqtt/MqttConnector.java
index cafa59d..5abb078 100644
--- a/examples/hello-connectivity-mqtt/src/main/java/org/apache/plc4x/java/examples/connectivity/mqtt/MqttConnector.java
+++ b/examples/hello-connectivity-mqtt/src/main/java/org/apache/plc4x/java/examples/connectivity/mqtt/MqttConnector.java
@@ -23,6 +23,12 @@ import com.fasterxml.jackson.databind.ObjectMapper;
 import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
 import com.google.gson.JsonArray;
 import com.google.gson.JsonObject;
+import com.hivemq.client.mqtt.MqttClient;
+import com.hivemq.client.mqtt.datatypes.MqttQos;
+import com.hivemq.client.mqtt.mqtt3.Mqtt3RxClient;
+import com.hivemq.client.mqtt.mqtt3.message.connect.connack.Mqtt3ConnAck;
+import com.hivemq.client.mqtt.mqtt3.message.publish.Mqtt3Publish;
+import com.hivemq.client.mqtt.mqtt3.message.publish.Mqtt3PublishResult;
 import io.reactivex.Flowable;
 import io.reactivex.Single;
 import org.apache.commons.lang3.StringUtils;
@@ -33,12 +39,6 @@ import org.apache.plc4x.java.api.messages.PlcReadRequest;
 import org.apache.plc4x.java.api.messages.PlcReadResponse;
 import org.apache.plc4x.java.examples.connectivity.mqtt.model.Configuration;
 import org.apache.plc4x.java.examples.connectivity.mqtt.model.PlcFieldConfig;
-import org.mqttbee.mqtt.MqttClient;
-import org.mqttbee.mqtt.datatypes.MqttQos;
-import org.mqttbee.mqtt.mqtt3.Mqtt3RxClient;
-import org.mqttbee.mqtt.mqtt3.message.connect.connack.Mqtt3ConnAck;
-import org.mqttbee.mqtt.mqtt3.message.publish.Mqtt3Publish;
-import org.mqttbee.mqtt.mqtt3.message.publish.Mqtt3PublishResult;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;