CocoaMQTT
CocoaMQTT copied to clipboard
The re-send mechanism is not implemented
I need to find out the following: if a message fails to send(network issues etc) does the library try to send the exact same message again and again until it succeeds? Or it goes to the next message in the buffer and tries to send that? It's important that messages are sent in order.
Hi, @sturza. The message order has ruled in MQTT 3.1.1 protocol, and CocoaMQTT should follow this. (see: 4.3 Qos and protocol flows 4.6 Message ordering)
But, the re-send mechanism not implemented now. It will be dropped after a timeout arrived. I will fix that in recently.
Is this done?
Also, if done, is the queue in-memory or does it persist even if i terminate the app?
In the v1.2.1 we save the un-acknowledge message to the memory for qos 1/2 messages.
We plan to persist these message to file in the v1.3.0