Is there any way to determine if "mqtt.publish" has sent a publish ACK message back?
The reason why I ask is because I need to buffer some data packets being published if the MQTT connection breaks. Then when the connection comes back up, I want to publish all the buffered data packets at once (if possible). So if I write a simple "for" loop with a "mqtt.publish" in it, without checking for a "publish ACK" each time, it seems that it would overwhelm the server. I would assume that the proper way to do it would be to publish and then check for an ACK before publishing again - especially if you were doing this in a loop and had hundreds of saved packets being sent out at once.
I would appreciate any advise on this.
Thanks.
The reason why I ask is because I need to buffer some data packets being published if the MQTT connection breaks. Then when the connection comes back up, I want to publish all the buffered data packets at once (if possible). So if I write a simple "for" loop with a "mqtt.publish" in it, without checking for a "publish ACK" each time, it seems that it would overwhelm the server. I would assume that the proper way to do it would be to publish and then check for an ACK before publishing again - especially if you were doing this in a loop and had hundreds of saved packets being sent out at once.
I would appreciate any advise on this.
Thanks.