Azure IoT Hub

Amqp protocol is not supported on Universal Windows App

I was surprised to learn that AMQP protocol is not supported on Universal Windows Platform with Azure Devices Client libraries.I was getting this message “Amqp protocol is not supported” when trying to connect to the Microsoft Azure IoT Hub through the UWA app. This applies to MQTT as well. Only thing that’s supported right now is HTTP.

The nuget package Microsoft.Azure.Devices.Client lists both AMQP and MQTT libraries as dependencies. But its not supported on the Universal Windows platform. Weird.


This threw “Amqp protocol is not supported” :

__thisClient = DeviceClient.Create(__azureIoTHubHostname, 
                       new DeviceAuthenticationWithRegistrySymmetricKey(__azureIoTHubDeviceId, __azureIoTHubDeviceKey));

Had to update the line to include the TransportType.HTTP1 parameter:

__thisClient = DeviceClient.Create(__azureIoTHubHostname, 
                       new DeviceAuthenticationWithRegistrySymmetricKey(__azureIoTHubDeviceId, __azureIoTHubDeviceKey),

One reply on “Amqp protocol is not supported on Universal Windows App”

I’m building an universal window platform app and like you had mentioned, tried using AMQP, to my surprise it wasn’t working for me either. So I did try to use http instead of amqp protocol , unfortunately http receive is not working, but i’m able to send info to device in my case mobile from cloud. Got any thoughts on how to handle it. Please let me know. my e-mail id is I

Leave a Reply

Your email address will not be published. Required fields are marked *