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 Set will in MQTT? #85

Closed
ak-peerbits opened this issue Aug 29, 2024 · 1 comment
Closed

How to Set will in MQTT? #85

ak-peerbits opened this issue Aug 29, 2024 · 1 comment

Comments

@ak-peerbits
Copy link

Hello,

I'm currently using the courier library in my Android project for MQTT communication. However, I am facing difficulty in figuring out how to set the will message in MQTT. The Last Will and Testament (LWT) message is crucial for ensuring that a disconnect is properly handled, and I'd like to understand how to configure this using your library.

Steps to Reproduce

Integrated the courier library into my project following the official documentation.
Established a connection to the MQTT broker using the library.
Now, I'm looking to set up the will message but couldn't find relevant information in the documentation.

Expected Behavior

There should be a clear method or a way to set the will message in the MQTT connection options provided by courier.

Actual Behavior

Currently, there seems to be no straightforward way or documentation on how to set the will message when using this library.

Environment Details

  • Library Version: [courier-0.2.9]
  • Android Version: [ Android 14]
  • Development Environment: [Android Studio Jellyfish | 2023.3.1 on macOS Sonoma]

Additional Context

It would be helpful if you could provide a code snippet or a guide on how to implement the will message in the MQTT connection using courier. If this feature isn't supported, could you consider adding it in a future release?

Code Snippet

Screenshot 2024-08-29 at 1 32 05 PM

Thank you for your assistance!

@deepanshu42
Copy link
Collaborator

deepanshu42 commented Nov 11, 2024

This feature is now available in 0.3.1 release

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

3 participants