Add custom properties to MQTT message for sending to Azure IoT Hub

440 Views Asked by At

I have sent messages from device to Azure IoT Hub using MQTT client (like mosquitto). But I want to add custom properties to these messages like the standard SDK of Microsoft.

Azure IoT Message custom properties

Is there any suggestion for that?

Any idea will be really appreciated. Thanks in advance

1

There are 1 best solutions below

0
Anh Tu On BEST ANSWER

The solution could be found in

Sending device-to-cloud messages

https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support

Thank @Roman for your suggestion