hemikak / mqtt-jmeter

This is the plugin for Jmeter to Test MQTT protocol
Apache License 2.0
22 stars 7 forks source link

Is this plugin support mqtt connection v3.1.1? #13

Open AzureUser123 opened 6 years ago

AzureUser123 commented 6 years ago

Hi, I need to connect to azure iothub to publish mqtt data through jmeter mqtt-plugin. But as I'm aware, this plugin uses mqtt connection version v3.1. So, can we use this plugin?

hemikak commented 6 years ago

Hi @AzureUser123 ,

There are few changes in the spec for v3.1.1 from v3.1 [1].

Currently the project uses 1.0.2 version of eclipse paho mqtt library to connect. But the azure project see here [2] uses version 1.2.0 [3] .

I suggest that you give it a try and see if it works. Else I will update the paho library to the latest version.

[1] - https://github.com/mqtt/mqtt.github.io/wiki/Differences-between-3.1.0-and-3.1.1 [2] - https://github.com/Azure/azure-iot-sdk-java/blob/master/device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/transport/mqtt/Mqtt.java [3] - https://github.com/Azure/azure-iot-sdk-java/blob/master/device/iot-device-client/pom.xml#L39

Regards, Hemika

AzureUser123 commented 6 years ago

Hi, I have changed the code to use v3.1.1 and re-built the lib. After that I was able to connect to azure iothub. Thanks for the support.

Regards, Amani