Skip to content

fix issue that message properties are not sent out when using MQTT#39

Closed
erich-wang wants to merge 2 commits intoAzure:masterfrom
erich-wang:msgProperty
Closed

fix issue that message properties are not sent out when using MQTT#39
erich-wang wants to merge 2 commits intoAzure:masterfrom
erich-wang:msgProperty

Conversation

@erich-wang
Copy link
Copy Markdown
Member

the Message's properties are sent out when using AMQP/HTTPS but MQTT

@msftclas
Copy link
Copy Markdown

Hi @erich-wang, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!


It looks like you're a Microsoft contributor. If you're full-time or an intern, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

}

MessageProperty[] messageProperties = message.getProperties();
String messagePublishTopic;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your change. This looks good and is much needed. Can you please also add a test case around this in device\iot-device-client\src\test\java\tests\unit\com\microsoft\azure\sdk\iot\device\transport\mqtt\MqttMessagingTest.java ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test case has been added, please review, thanks.

@prmathur-microsoft
Copy link
Copy Markdown
Member

Added a new requirement, squashed all the commits and checked in @f9e2af997932722357fa15b8eba13e3bbc2e7d76 commit. Thank you for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants