Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add per-message properties #26

Open
rmja opened this issue Feb 3, 2023 · 2 comments
Open

How to add per-message properties #26

rmja opened this issue Feb 3, 2023 · 2 comments

Comments

@rmja
Copy link

rmja commented Feb 3, 2023

I would like to add the Property::ContentType to the mqtt messages. connect_to_broker() does not include the property as property_allowed() returns false for that property and send_message() does not include any properties from the config.
Ideally there should be some way of specifying per-message properties - is this currently possible? I may be missing something.

@rmja
Copy link
Author

rmja commented Feb 3, 2023

One option would be to return some kind of builder when invoking send_message() like reqwless does https://github.com/drogue-iot/reqwless/blob/main/src/client.rs

@obabec
Copy link
Owner

obabec commented Feb 7, 2023

Hi @rmja feel free to create PR :)

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

No branches or pull requests

2 participants