Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Last Will seems to be set incorrectly #50

Open
ajongen opened this issue Dec 3, 2024 · 0 comments
Open

Last Will seems to be set incorrectly #50

ajongen opened this issue Dec 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ajongen
Copy link

ajongen commented Dec 3, 2024

The availability topic in MQTT is not set to "offline" when the wordclock e.g. is turn off (at least in my configuration). I suspect that the line where it is set:

mqtt_client_.setWill(availabilityTopic.c_str(), "offline");

should also set the RETAIN flag to TRUE and maybe also the QOS to 0. This by the looks of the code in the used MQTT lib:

void MQTTClient::setWill(const char topic[], const char payload[], bool retained, int qos)

@t0mg t0mg added the bug Something isn't working label Jan 2, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants