-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TimeoutException when connecting to Azure Iothub #21
Comments
Please refer to #4. You probably need to specify a correct clientId. |
I have used deviceId as the clientId as mentioned. But still it doesn't connect. |
Can you telnet to port of Azure MQTT server? |
yes.. I think it's because the mqtt connection version. Now I'm trying to use v3.1.1. since it is the version azure iothub uses to connect. where should I change in the sourcecode to use a different mqtt version? |
I have changed PubSampler.java to use v3.1.1 by using mqtt.setVersion("3.1.1"); |
Cool, what's the default version? If it's a common requirement, we'd better expose the option in the UI. |
Default version is v3.1. But azure uses only v3.1.1 as the mqtt version to connect to the hub. It's better if the user has the option to select the version.. :) |
OK, we'll add the feature to future release, thanks for your feedback. |
Refer to below screenshot, added another option for MQTT protocol version. I don't have a MQTT server support 3.1.1, could help to try the fix attached in below? Thanks. |
Great, thanks for your help. I close the issue, and it will be included in next release. |
Hi, I am trying to connect to Azure IoT Hub using JMeter but unable to connect. JMeter shows below error, “Connection org.fusesource.mqtt.client.FutureConnection@2ae2a5 connected failed.” (Sampler request panel) I have referred following links but no success, #21 (downloaded mqtt-xmeter-jar-with-dependencies.jar.zip) Below is my MQTT Connection Sampler configuration, All the details entered are correct. Kindly guide me through this. Thanks. Regards, |
You did not mention how you specify the clientID, is clientID correct? Thanks. |
Thanks for the reply. Sorry, I forgot to mention the clientID. The clientID is exactly same as the 'Device ID' which is correct. This Device ID is registered in Azure IoT Hub so that I can send the messages to IoT Hub for this device.'Add random client id suffix' is 'Unchecked' |
You are not using the latest version of plugin, please download the latest version of JAR and replace your current. The latest version of plugin should have an option for selecting 'MQTT version', please select 3.1.1 in that drop-down box (which is also mentioned in homepage - https://github.com/emqtt/mqtt-jmeter). |
@jinfahua |
Did you use Open JDK, Sun JDK or IBM JDK of version 8 update 161? |
'Sun JDK' which is now 'Java Oracle' |
@saurabh-saviant - i am pretty new to Azure IOT, how do i get the password. I only see primary key and secondary keys in the Device registry in IOT hub. Do you i need to create separate SAS tokens? and if you could share a screenshot of the |
To create a SAS token you can download Azure device explorer. Download it from here or any other source. |
I found a way of using Azure IOT Tools on VSCode to generate the SAS password. My problem is resolved. in the earlier screenshots that @saurabh-saviant had shared showed '&' before API-Version. It's actually '/'. and it worked! Thanks for the help here!! 👍 👍 👍 |
I have tried to get connection with MQTT server but still showing error as "Failed to establish Connection null." |
Hi,
I've been trying to send a payload data to a device in azure iot hub through this mqtt plugin in jmeter. But it doesn't connect to the hub and there's an exception throwing as below.
Is there any more configurations need to be done in addition to clientId, Topic name,Username,Password and Server name or IP?
Thank you in advance.
The text was updated successfully, but these errors were encountered: