Giter VIP home page Giter VIP logo

Comments (5)

sfeakes avatar sfeakes commented on September 26, 2024

Thanks for the suggestion. AqualinkD already publishes with the retain flag, so anything connecting should get the last set of values AqualinkD posted directly from the MQTT server. So I’m not sure what this adds over that from an AqualinkD perspective. If a client dies, AqualinkD really doesn’t care about knowing that. At the time the client reconnects it will get the latest messages AqualinkD sent.
What problem / or potential issue do you see this solving?

from aqualinkd.

abarbaccia avatar abarbaccia commented on September 26, 2024

Sorry for the poor description! Client = aqualinkd, server = mqtt broker.

This would let you have a simple status topic in mqtt to see if aqualinkd is running. For example... When daemon starts, aqualinkd posts “online” message to a status topic. At the same time it sets the last will message to be “offline”. When daemon stops, it should post “offline” to the status message. If aqualinkd dies unexpectedly (eg WiFi drops, error, etc), then mqtt server will post the last will message on aqualinkd behalf. It’s a nice feature of mqtt tbh.

from aqualinkd.

sfeakes avatar sfeakes commented on September 26, 2024

Now I understand what you are after.
I've made the changes, Last Will Message is now supported.
aqualinkd/Alive (0 or 1)

from aqualinkd.

abarbaccia avatar abarbaccia commented on September 26, 2024

from aqualinkd.

abarbaccia avatar abarbaccia commented on September 26, 2024

works like a charm! Thanks!!

from aqualinkd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.