HTTP Protocol for IOT Hub Device to Cloud connection

Visnu Sangar 6 Reputation points
2022-05-05T08:43:24.377+00:00

Earlier, IoT Hub supported both MQTT and HTTP Protocol. But now, it is supporting only MQTT Protocol. But our requirement is to follow the HTTP Protocol. How to implement the HTTP Protocol in IoT Hub?
Earlier it was PROTOCOL= IoTHubTransportProvider.HTTP

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,229 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 34,371 Reputation points MVP
    2022-05-05T13:49:20.857+00:00

    Hello @Visnu Sangar ,

    I'm not sure if any of the programming language SDKs give this limitation... the list @AshokPeddakotla-MSFT provides is correct.

    Can you explain what you mean by "But our requirement is to follow the HTTP Protocol"?

    Are you only allowed to communicate over HTTP(S) / REST calls?

    Or, are you only allowed to communicate over port 443?

    If you only can use HTTP(S) / Rest calls, you have to use the REST API (like in this old blog post). Next to that, Cloud-to-device messages will probably arrive delayed (up to 20 minutes).

    If only Port 443 is allowed, Check out the MQTT/AMQP over websockets.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.