MQTT Embedded Client C doesn't support retransmissions [message #1780686] |
Thu, 25 January 2018 12:36  |
Eclipse User |
|
|
|
Hello,
inspecting the code, it seems that MQTT embedded client in C doesn't support message retransmission when QOS > 0, as requested by the specification (Section 4.1 paragraph QOS Level 1):
"If the client does not receive a PUBACK message (either within a time period
defined in the application, or if a failure is detected and the communications
session is restarted), the client may resend the PUBLISH message with the DUP flag set."
In fact, in function MQTTPublish, if the send fails, an error code is simply returned.
Am I wrong?
Is there a reason for this?
Thanks
|
|
|
|
Re: MQTT Embedded Client C doesn't support retransmissions [message #1780890 is a reply to message #1780866] |
Mon, 29 January 2018 10:58  |
Eclipse User |
|
|
|
Thanks Ian,
I'll read the new specification.
The reason for my request is that I have only UDP available and I'm looking for a way to make communication reliable.
In particular, my physical interface is Narrowband IoT and current chipsets offers only UDP to exchage packets in the network.
Possibly, I would have to implement retransmisssion in the library and make sure that the server support QOS > 0 and retransmission.
Bye
|
|
|
Powered by
FUDForum. Page generated in 0.39608 seconds