Added script to test issue 9, publish of a QoS2 message

This commit is contained in:
selva.andre
2013-11-07 11:55:23 +01:00
parent 49d1b2c948
commit 7a7c5cc53e
4 changed files with 98 additions and 3 deletions
+2 -1
View File
@@ -51,10 +51,11 @@ class SubscriberCallback implements MqttCallback {
}
}
String host = args[0]
String tmpDir = System.getProperty("java.io.tmpdir")
MqttDefaultFilePersistence dataStore = new MqttDefaultFilePersistence(tmpDir)
MqttClient client = new MqttClient("tcp://localhost:1883", "SubscriberClient", dataStore)
MqttClient client = new MqttClient("tcp://${host}:1883", "SubscriberClient", dataStore)
def callback = new SubscriberCallback()
client.callback = callback
client.connect()