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

MQTT Status #165

Closed
psxde opened this issue Dec 11, 2020 · 4 comments
Closed

MQTT Status #165

psxde opened this issue Dec 11, 2020 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@psxde
Copy link

psxde commented Dec 11, 2020

Hi,

a Online/Offline LWT value in MQTT would be nice to detect whether the device is online/connected or not.

Maybe this can be added in the next version.

Thanks,
Patrick

@klausahrenberg klausahrenberg added the enhancement New feature or request label Dec 30, 2020
@klausahrenberg
Copy link
Owner

Sorry, I don't get the idea. What exactly is the request? An online and offline status via MQTT? How should the device communicate the 'offline' state via MQTT - if it's not connected? I think, I have a wrong idea of your request here :-) Please clarify

@psxde
Copy link
Author

psxde commented Jan 25, 2021

Hi Klaus,
exactly - an online and offline state. If you search for MQTT LWT you should find details about LWT (last will and testament). In short: You can store a last will message in the mqtt broker which will then be sent after the client is disconnected ungracefully.

@klausahrenberg
Copy link
Owner

Ok, cool idea - I din't knew this. It's already implemented and works great. Will come in version 1.20k, but before publishing I will fix some other issues. Just wait a little. I solved this and putted an 'alive' boolean value in the device state report. The LWT message contains the idx, ip and "alive":false in payload.

@klausahrenberg klausahrenberg self-assigned this Jan 25, 2021
@klausahrenberg
Copy link
Owner

implemented in 1.20k

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

No branches or pull requests

2 participants