-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
unable to connect to azure iot hub via mqtt protocol #34309
Comments
The -116 errno is ETIMEDOUT, so the connection cannot be established. Difficult to know what is going on, there are lot of moving parts involved when setting the Azure configuration parameters etc. I do not have Azure credentials to try this. |
BTW, the current timeout (from your screenshot) seems to be 3 sec. Could you try to increase it as I remember seeing some complaints that the cloud connection establishment can take a long time. |
Describe the bug
I am trying to connect the nucleo-f429zi using the wifi shield esp-01 to my azure-iot-hub. The samples project is here: https://docs.zephyrproject.org/latest/samples/net/cloud/mqtt_azure/README.html
i created an iot-hub and i added a device. The sample project requires these parameters:
I set up these parameters in the menuconfig of the project, except the azure cloud server address and port.
To Reproduce
Steps to reproduce the behavior:
Impact
the sample project cannot connect to the iot-hub. I guess because i didn´t set up correctly the SAS-token. please see the logs in the picture below. in which format is the SAS token for mqtt protocol ?
Logs and console output
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: