MQTT-SN: How to handle Retransmission of Publish-Messages while Sleeping

96 views
Skip to first unread message

Kolja Vornholt

unread,
May 15, 2018, 4:30:06 AM5/15/18
to MQTT
Dear all,

MQTT-SN is used on connectionless transport protocols. This is why a retransmission mechanism in case of QoS=1 is necessary in my view. Such a retransmission mechanism can be activated on an MQTT Broker. Now I am wondering what should happen on the MQTT-SN Gateway when MQTT-SN clients are asleep. Does the Gateway should send the Puback to the Broker or should it merge all retransmitted Publish-Messages to one single Message?
I cannot see this question answered in the MQTT-SN Spec.

Do you have a solution?

Thanks a lot and best regards,
Kolja

Alex Robenko

unread,
May 15, 2018, 7:42:04 PM5/15/18
to MQTT
If I'm not mistaken, gateway is still connected to the broker while client is asleep. It means from the broker perspective the client is connected and expected to be responsive. As the result, the gateway needs to reply with PUBACK on behalf of the client, while retaining the message(s) internally and then resend them to the client (on behalf of the broker) when the client wakes up. Also when client answers with PUBACK of its own, it should not be forwarded to broker at that stage.

Regards,
Alex

Seung Yul Baek

unread,
May 15, 2018, 8:26:13 PM5/15/18
to mq...@googlegroups.com

2018년 5월 15일 (화) 오후 5:30, Kolja Vornholt <kolja.v...@gmail.com>님이 작성:
--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+uns...@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages