IOT Hub Control Device without SDK - Using MQTT

Red255 71 Reputation points
2022-01-20T16:47:58.67+00:00

Hi I have followed this guide successfully:

https://learn.microsoft.com/en-us/azure/iot-hub/quickstart-control-device?pivots=programming-language-csharp

What I would like to do is replicate this such that the device sending telemetry is my MQTT device publishing its topics to the IoT - (which I think is just a case of connecting it to the hub)

And then using an app on a smart phone to Call the direct method which would effectively said a on or off flag to the device.

When I look at the CS code for this it appears a lot of the heavy lifting is being done by the SDK.

Is there any guide that provides information on how to do this without the sdk

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

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 36,761 Reputation points MVP Volunteer Moderator
    2022-01-20T21:28:36.73+00:00

    Hello @Red255 ,

    The Azure IoT Hub supports communicating over MQTT without the SDK.

    Check this tutorial because the format is very specific.

    The new support for MQTT5 is still in preview.

    1 person found this answer helpful.
    0 comments No comments

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.