-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Support LWT messages when using TASMESH #20392
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the defines
This PR has been automatically marked as stale because it hasn't any activity in last few weeks. It will be closed if no further activity occurs. Thank you for your contributions. |
@Staars fine for you? |
No complaints from my side. I remember thinking relatively early on about the concept of different nodes, which could be "always on" or "uncertainly accessible". The former should send a guaranteed heartbeat, where the absence would indicate an error. |
Description:
This PR enables the TASMESH broker to detect when nodes come online and offline through the use of heartbeat packets. When a change is detected, the corresponding LWT Online or Offline message is sent through MQTT.
Related issue (if applicable): fixes #20369 and #20375
Checklist:
NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass