8.11.2019 MQTT finished

This commit is contained in:
Gregor_Dutzler 2019-11-08 15:07:29 +01:00
parent a4563def38
commit 797d29281b
3 changed files with 0 additions and 10 deletions

View File

View File

@ -8,13 +8,10 @@ import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.DateFormat;
import java.util.ArrayList;
import java.util.GregorianCalendar;
public class mqtt {
ArrayList<String> mylist = new ArrayList<>();
int index = 0;
public mqtt() {
@ -74,7 +71,6 @@ public class mqtt {
if (temp != null) {
transmitmessageAbfallart(temp);
notifymessage();
} else {
Log.debug("NO Connection");
}
@ -84,7 +80,6 @@ public class mqtt {
e.printStackTrace();
}
}

View File

@ -10,8 +10,6 @@ import org.eclipse.paho.client.mqttv3.persist.MemoryPersistence;
public class mqtttransmitter {
private String messagedatabase;
public mqtttransmitter() {
}
@ -23,8 +21,6 @@ public class mqtttransmitter {
String clientId = "JavaSample";
MemoryPersistence persistence = new MemoryPersistence();
System.out.println("HI");
try {
MqttClient sampleClient = new MqttClient(broker, clientId, persistence);
MqttConnectOptions connOpts = new MqttConnectOptions();
@ -50,5 +46,4 @@ public class mqtttransmitter {
me.printStackTrace();
}
}
}