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

Client last will (LWT) example config not working? #159

Open
baudneo opened this issue Aug 25, 2024 · 0 comments
Open

Client last will (LWT) example config not working? #159

baudneo opened this issue Aug 25, 2024 · 0 comments

Comments

@baudneo
Copy link

baudneo commented Aug 25, 2024

Installed using pip install git+https://github.com/Yakifo/amqtt.git - version 0.10.0

In the examples (samples), there is a will entry in the config dict for the MQTTClient class. When I try this in my code, the topic isn't created and no payload is sent.

Also, there is not any documentation I can find about the LWT in the config dict, which is confusing as the examples imply that there is LWT logic.

Example code

        self.client = amqtt_client.MQTTClient(
            config={
                "reconnect_retries": -1,
                "auto_reconnect": True,
                "will": {
                    "topic": LWT_TOPIC,
                    "message": LWT_MSG,
                    "qos": 0x01,
                    "retain": True,
                }
            }
        )
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

No branches or pull requests

1 participant