Search code examples
azuremessageazure-iot-hubcustom-properties

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


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


Solution

  • 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