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

Transport: fix last will message #58

Merged
merged 1 commit into from
Jul 12, 2019
Merged

Transport: fix last will message #58

merged 1 commit into from
Jul 12, 2019

Conversation

GwendalRaoul
Copy link
Contributor

This feature was broken probably during the mqtt abstraction.
Last will message can only be set before the connect is called.

Doing it after the connect had no effect so offline state was not sent
anymore

@GwendalRaoul GwendalRaoul requested a review from PFigs July 11, 2019 14:52
@@ -54,11 +54,17 @@ def __init__(

self.whitened_ep_filter = settings.whitened_endpoints_filter

last_will_topic = TopicGenerator.make_status_topic(self.gw_id)
last_will_message = wirepas_messaging.gateway.api.StatusEvent(
self.gw_id, GatewayState.OFFLINE).payload
Copy link

Choose a reason for hiding this comment

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

continuation line over-indented for hanging indent

This feature was broken probably during the mqtt abstraction.
Last will message can only be set before the connect is called.

Doing it after the connect had no effect so offline state was not sent
anymore
@GwendalRaoul GwendalRaoul merged commit 113b171 into master Jul 12, 2019
@PFigs PFigs deleted the fix_last_will branch July 12, 2019 10:20
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.

2 participants