Azure-rtos: Legacy mqtt vs nx client

Karim Walid Abdelazim Elhammady 16 Reputation points
2022-01-25T02:45:40.067+00:00

Hello,

I am developing an application, and I have been using the legacy mqtt client for a while now, and it is working without any issues. I found the nx client that can be used to do exactly the same thing.

Can anyone explain to me the difference between the legacy mqtt client and the nx client? What will be the benefits for me to switch the nx client instead of the legacy mqtt?

The source code can be found in any of the examples in the following repository: https://github.com/azure-rtos/getting-started

Thanks,
Karim

Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
341 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tiejun Zhou 1,131 Reputation points Microsoft Employee
    2022-01-26T02:44:13.407+00:00

    For NetX MQTT client, it is a general implementation of MQTT 3 client. You can use it to connect to whatever MQTT broker you are using, including Azure IoTHub but which requires some message encoding and parsing. So we have provided the Azure IoT middleware which wrappers all the functionalities you need to connect to Azure IoTHub and makes developers easy to use.

    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.