MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.2k stars 21.35k forks source link

How To for Android/iOS MQTT clients #112436

Open j-floroiu opened 1 year ago

j-floroiu commented 1 year ago

Hi,

Is there more detailed information available on how to use https://learn.microsoft.com/en-us/azure/iot/iot-mqtt-connect-to-iot-hub#using-the-mqtt-protocol-directly-as-a-device and/or https://learn.microsoft.com/en-us/azure/iot/iot-mqtt-connect-to-iot-dps#using-the-mqtt-protocol-directly-as-a-device with available MQTT clients?

For instance, I tried out MQTT Dashboard and MyMQTT apps on an Android, but without success so far.

Thanks.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

RamanathanChinnappan-MSFT commented 1 year ago

@j-floroiu Thanks for your feedback! We will investigate and update as appropriate.

AshokPeddakotla-MSFT commented 1 year ago

@j-floroiu What is the issue you are facing? Can you share further details to help you?

jwfloroiu commented 1 year ago

Hi! Thank you for following up! I was trying out these two MQTT clients on an Android phone. I filled in the credentials as described in the howtos, tried out a few variations, because the attributes there do not match one-to-one the fields required by the apps, but did not manage to establish a connection to the Azure IoT hub/dps. The error messages on the phone just say "failed to connect", don't provide any useful hint, but I am assuming it's because incorrectly formatted URL / credentials. I would appreciate if you could provide a more detailed howto for any generic MQTT client app.

Screenshot_20230804-153025_MyMQTT Screenshot_20230804-152933_MQTT Dashboard

Thank you, John