NotJustAToy / aio-mqtt

Asynchronous MQTT client for 3.1.1 protocol version
Apache License 2.0
11 stars 4 forks source link

Only send puback/pubrec of received messages after processing them #5

Open martinscheffler opened 3 years ago

martinscheffler commented 3 years ago

When I receive QOS 1 or 2 messages I want to store them to a database and only send confirmation of receipt to the mqtt broker after that has completed. Is that somehow possible with aio-mqtt? For me it looks like messages are confirmed as received as soon as (or even before) they are put into the consumer queues.

martinscheffler commented 3 years ago

BTW here is a relevant discussion for paho mqtt client: https://github.com/eclipse/paho.mqtt.python/issues/348