Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » MQTT-SN Gateway: sleeping client not working
MQTT-SN Gateway: sleeping client not working [message #1794839] Fri, 07 September 2018 12:48 Go to next message
Dario Cillerai is currently offline Dario CilleraiFriend
Messages: 5
Registered: January 2018
Junior Member
Hello,

I'm developing a client with Paho MQTT-SN interfaced with the related Gateway.

Everything is OK, but I can't get sleeping client feature working as described in section 6.14 of specifications (see figure 5):

"MQTT For Sensor Networks (MQTT-SN) Protocol Specification Version 1.2".

I send a DISCONNECT with sleep duration = 600 and I get a DISCONNECT from Gateway as expected.
Then, the client goes to sleep.
While the client is sleeping, a message to the client is then published by our server.
When the client wakes up, it sends a PINGREQ to the Gateway (see figure 5 of specifications) but a new DISCONNECT is received from the Gateway instead of the published messages.
Has someone experience on this feature? any advice?

Many thanks
Re: MQTT-SN Gateway: sleeping client not working [message #1794849 is a reply to message #1794839] Fri, 07 September 2018 16:15 Go to previous messageGo to next message
Dario Cillerai is currently offline Dario CilleraiFriend
Messages: 5
Registered: January 2018
Junior Member
It seems that, after DISCONNECT has been received, the Gateway deletes the client after a timeout (probably 20 seconds), even if duration is 600 seconds.

If PINGREQ is sent by the Client 7 seconds after DISCONNECT, the published message is correctly received by the client in AWAKE state.

Re: MQTT-SN Gateway: sleeping client not working [message #1794922 is a reply to message #1794849] Tue, 11 September 2018 07:36 Go to previous message
Dario Cillerai is currently offline Dario CilleraiFriend
Messages: 5
Registered: January 2018
Junior Member
Using network log, I've seen that it is the Broker that disconnects and prints the message:

"Client has exceeded timeout"

Client is sleeping and can't keep the connection ON with the Broker.
The Gateway should keep the connection with the Broker and buffer the messages for the Client.

What is the expected (and right) behaviour of Broker and Gateway when client is sleeping?

Previous Topic:PAHO SUBSCRIBE ERROR please help me
Next Topic:C Paho Api Threading Issue
Goto Forum:
  


Current Time: Wed Sep 26 14:55:08 GMT 2018

Powered by FUDForum. Page generated in 0.02521 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top