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

Add support for the last will #86

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Conversation

sumitjat3
Copy link
Contributor

@sumitjat3 sumitjat3 commented Oct 18, 2024

Pull request support request from the issue, which request for the feature adding Last Will and Testament to the MqttConnectOptions.

For more information about Last Will and Testament read here

Example

  val will = Will(
            topic = "last/will/topic",
            message = "Client disconnected unexpectedly",
            qos = QoS.ZERO,
            retained = false
        )

        val connectOptions = MqttConnectOptions.Builder()
            .serverUris(listOf(ServerUri(ip, port))
            .clientId(clientId)
            .userName(username)
            .password(password)
            .cleanSession(false)
            .will(will)
            .keepAlive(KeepAlive(timeSeconds = 30))
            .build()

@sumitjat3 sumitjat3 force-pushed the feature/add-last-will-support branch 3 times, most recently from 8db5fa7 to cf2e9f1 Compare October 18, 2024 16:33
@sumitjat3 sumitjat3 requested a review from deepanshu42 October 21, 2024 08:10
@sumitjat3 sumitjat3 self-assigned this Oct 21, 2024
@sumitjat3 sumitjat3 added the enhancement New feature or request label Oct 21, 2024
@sumitjat3 sumitjat3 force-pushed the feature/add-last-will-support branch from cf2e9f1 to 42502e5 Compare October 21, 2024 08:10
@sumitjat3 sumitjat3 marked this pull request as ready for review October 21, 2024 08:11
@sumitjat3 sumitjat3 force-pushed the feature/add-last-will-support branch from 42502e5 to 7c6a3e3 Compare October 21, 2024 09:52
@sumitjat3 sumitjat3 force-pushed the feature/add-last-will-support branch from 7c6a3e3 to 09fd7c9 Compare November 5, 2024 03:06
@sumitjat3 sumitjat3 force-pushed the feature/add-last-will-support branch from 09fd7c9 to 2639f3f Compare November 5, 2024 08:17
@deepanshu42 deepanshu42 merged commit 5644838 into main Nov 5, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants