njouanin / hbmqtt

MQTT client/broker using Python asynchronous I/O
MIT License
800 stars 188 forks source link

Enable user to pass timeout limit for QOS_1 to schedule resend packets #161

Open bh4r4th opened 5 years ago

bh4r4th commented 5 years ago

Feature Request: Currently when we set QOS_1, I have observed that the packet is resent every 10 seconds if the PUBACK is not received. In future can we expect a feature to enable a way to increase or decrease this 10 seconds limit. So that, any user can limit the spamming by QOS_1 on slow networks and still can use QOS_1.

bh4r4th commented 5 years ago

In client.py, publish() is not accepting any timeout like ack_timeout. But, In handler.py ack_timeout can be passed to mqtt_publish(self, topic, data, qos, retain, ack_timeout=None). I think ack_timeout param pass through to this method will enable this feature.