Code Monkey home page Code Monkey logo

Comments (4)

miili avatar miili commented on June 25, 2024 2

The exception is also due to this 90766b0#r36865808 in v0.5.5.

from gmqtt.

HerrMuellerluedenscheid avatar HerrMuellerluedenscheid commented on June 25, 2024

Turns out that the subscriptions it not established in the first place. I'm using an asyncio routine for that which is waiting for the connection to be established inside of a MQTTClient subclass:

await self._connected.wait()
self.subscribe(topic, qos=qos)

The subscription happens right before the connection crashes (see above). But after the connection is lost, no message go through to the subscription.

from gmqtt.

Lenka42 avatar Lenka42 commented on June 25, 2024

@HerrMuellerluedenscheid WARNING:gmqtt.mqtt.handler:[EXC OCCURED] in reconnect future None is buggy logging 😞 as @miili mentioned. Today new version0.6.0 is released, it's fixed there.
Wether subscriptions are alive or not depends on the session life time. You can manipulate session with parameters clean_session parameter and sssion_expiry_interval connect property.

from gmqtt.

Lenka42 avatar Lenka42 commented on June 25, 2024

@HerrMuellerluedenscheid I will close the issue. If you have further questions, please reopen.

from gmqtt.

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.