Comments (4)
Developing this feature now. Please be patient since too many TODOs in my list.
from emqx-sn.
@jpmzometa This bug has been fixed in v2.3-beta1.
from emqx-sn.
@jpmzometa sleeping device will be added into next official release.
from emqx-sn.
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)
- mqtt-sn Gateway not working HOT 7
- QoS granted on SUBACK is ignored HOT 2
- Serial port support HOT 1
- Subsequent CONNECTs ignored by gateway
- UNSUBSCRIBE without a payload disconnects the client HOT 4
- qos -1 issue HOT 2
- undefined macro 'SN_RC_MQTT_FAILURE' HOT 7
- Setting the port to ::1:2000 causes error HOT 12
- CONNACK is not always sent to the client HOT 4
- Feature request: Wildcards HOT 4
- Forward to mqtt server HOT 1
- Forwarder encapsulation
- Failure to accept Sn messages with v3 beta HOT 7
- SEARCHGW should always be answered by gateway
- Shutdown due to idle timeout HOT 12
- connection would be destroyed if mqtt-sn client send a 2nd CONNECT in connected state.
- QoS -1 Not Working HOT 1
- Options for transparent and aggregate sn gateway HOT 2
- Empty ClintId on connect HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emqx-sn.