Giter VIP home page Giter VIP logo

Comments (4)

grutabow avatar grutabow commented on August 20, 2024 1

Developing this feature now. Please be patient since too many TODOs in my list.

from emqx-sn.

grutabow avatar grutabow commented on August 20, 2024 1

@jpmzometa This bug has been fixed in v2.3-beta1.

from emqx-sn.

grutabow avatar grutabow commented on August 20, 2024

@jpmzometa sleeping device will be added into next official release.

from emqx-sn.

jpmzometa avatar jpmzometa commented on August 20, 2024

Hi. I've been playing around with the sleeping client implementation. It does not work as expected. A client doing a CONNECT to the gateway, SUBSCRIBE to a topic, and DISCONNECT with a duration (i.e. going to sleep) works correctly. However, every time the client sends a PINGREQ (client awake) message, it gets from the gateway all the previous messages that have been published (in the topics subscribed by the client) since the client went to sleep via the DISCONNECT with duration.

Put in another words, if there are buffered messages for the client in the gateway (that is, for the topics for which the client has subscribed), after a PINGREQ from the client (i.e. client is awake), the gateway should send all buffered messages and at the end a PINGRESP, and the gateway should clear its buffer (assuming all messages satisfied the QoS). If the client sends a new PINGREQ, the gateway should just reply with a PINGRESP if there are no new messages. At the moment, it appears the buffered messages are not cleared in the gateway (i.e. each new message is added to the buffer, and all messages in the buffer are sent to the client every time a PINGREQ arrives from the client).

from emqx-sn.

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.